with Campaign Monitor and Benchmark Email?
Creates a new subscriber on a specific list. See the documentation
Sends an intelligent transactional email to a specified recipient. See the documentation
Removes a subscriber from a mailing list given their email address. 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`,
},
})
},
})
Benchmark Email API lets you automate your email marketing efforts. You can manage subscribers, send emails, and track campaign results. With Pipedream's serverless platform, tapping into this API means you can create custom, automated workflows that respond to events in real time across various apps and services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
benchmark_email: {
type: "app",
app: "benchmark_email",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://clientapi.benchmarkemail.com/Client/ProfileDetails`,
headers: {
"AuthToken": `${this.benchmark_email.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})