with Donorbox and Welcome?
Emit new event when a new event is created in Welcome. See the documentation
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: {
welcome: {
type: "app",
app: "welcome",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.experiencewelcome.com/api/v1/events`,
headers: {
Authorization: `Bearer ${this.welcome.$auth.oauth_access_token}`,
"Accept": `application/json`,
},
})
},
})