import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
opinion_stage: {
type: "app",
app: "opinion_stage",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.opinionstage.com/api/v2/items`,
headers: {
"accept": `application/vnd.api+json`,
},
auth: {
username: `${this.opinion_stage.$auth.api_key}`,
password: ``,
},
})
},
})
Opinion Stage uses API keys for authentication. When you connect your Opinion Stage account, Pipedream securely stores the keys so you can easily authenticate to Opinion Stage APIs in both code and no-code steps.