with SmashSend and Mailchimp?
Adds a new note to an existing subscriber. See docs here
Adds a new subscriber to an audience or updates existing subscriber. See docs here
Create a new contact or update an existing contact. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smashsend: {
type: "app",
app: "smashsend",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smashsend.com/v1/api-keys/check`,
headers: {
Authorization: `Bearer ${this.smashsend.$auth.api_key}`,
},
})
},
})
The Mailchimp API taps into the heart of your email marketing efforts, allowing you to manage subscribers, campaigns, and reports. With the API, you can automate tasks like syncing subscriber lists, segmenting contacts based on behavior, and personalizing email content to match user profiles. It's a powerful tool for marketers looking to fine-tune their email strategy and maximize engagement.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailchimp: {
type: "app",
app: "mailchimp",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://login.mailchimp.com/oauth2/metadata`,
headers: {
Authorization: `Bearer ${this.mailchimp.$auth.oauth_access_token}`,
},
})
},
})