import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
indiefunnels: {
type: "app",
app: "indiefunnels",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.indiefunnels.$auth.api_url}/api/site/products`,
headers: {
Authorization: `Bearer ${this.indiefunnels.$auth.api_key}`,
"user-agent ": `@PipedreamHQ/pipedream v0.1`,
},
})
},
})
INDIEFUNNELS uses API keys for authentication. When you connect your INDIEFUNNELS account, Pipedream securely stores the keys so you can easily authenticate to INDIEFUNNELS APIs in both code and no-code steps.