import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
donorbox: {
type: "app",
app: "donorbox",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://donorbox.org/api/v1/campaigns`,
auth: {
username: `${this.donorbox.$auth.email}`,
password: `${this.donorbox.$auth.api_key}`,
},
})
},
})
Donorbox uses API keys for authentication. When you connect your Donorbox account, Pipedream securely stores the keys so you can easily authenticate to Donorbox APIs in both code and no-code steps.