with Campaign Monitor and OnlineCheckWriter?
Creates a new subscriber on a specific list. See the documentation
Create an email check for a payee. See the documentation
Registers a new payee within the system.See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
campaign_monitor: {
type: "app",
app: "campaign_monitor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.createsend.com/api/v3.3/primarycontact.json`,
headers: {
Authorization: `Bearer ${this.campaign_monitor.$auth.oauth_access_token}`,
"Content-Type": `application/json; charset=utf-8`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
onlinecheckwriter: {
type: "app",
app: "onlinecheckwriter",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.onlinecheckwriter.$auth.environment}/api/v3/bankAccounts`,
headers: {
Authorization: `Bearer ${this.onlinecheckwriter.$auth.api_key}`,
},
})
},
})