with Donorbox and eGestor?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
egestor: {
type: "app",
app: "egestor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.egestor.com.br/api/v1/usuarios`,
headers: {
Authorization: `Bearer ${this.egestor.$auth.oauth_access_token}`,
},
})
},
})