import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
referral_rocket: {
type: "app",
app: "referral_rocket",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.referralrocket.io/api/v1/getAllParticipants`,
headers: {
"x-api-key": `${this.referral_rocket.$auth.api_key}`,
},
params: {
id: `${this.referral_rocket.$auth.campaign_id}`,
},
})
},
})
Referral Rocket uses API keys for authentication. When you connect your Referral Rocket account, Pipedream securely stores the keys so you can easily authenticate to Referral Rocket APIs in both code and no-code steps.