import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
questionpro: {
type: "app",
app: "questionpro",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.questionpro.$auth.environment}.questionpro.com/a/api/v2/organizations/4734262`,
params: {
apiKey: `${this.questionpro.$auth.api_key}`,
},
})
},
})
QuestionPro uses API keys for authentication. When you connect your QuestionPro account, Pipedream securely stores the keys so you can easily authenticate to QuestionPro APIs in both code and no-code steps.
To retrieve your API key,
Navigate to your QuestionPro account and sign in
To set your environment, view the data center for your account:
Navigate to your QuestionPro account and sign in