with Agiliron and Mailchimp?
Emit new event when a new contact is created in Agiliron. See the documentation
Emit new event when a recipient clicks a pre-specified link in an specific campaign.
Emit new event when an audience is added to the connected Mailchimp account.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
agiliron: {
type: "app",
app: "agiliron",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.agiliron.$auth.subdomain}.agiliron.net/agiliron/api-40/Accounts`,
headers: {
"Accept": `application/json`,
"apiKey": `${this.agiliron.$auth.api_key}`,
},
params: {
filter: `CreatedTime,bt,01-15-2000 | 01-31-2025`,
},
})
},
})
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}`,
},
})
},
})