with Mailchimp and OneSignal (REST API)?
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.
Emit new event when a new file is added to the File Manager of the connected Mailchimp account.
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}`, }, }) }, })
OneSignal's REST API enables developers to automate the delivery of push notifications, manage users and segments, and gather analytics to refine communication strategies. By integrating OneSignal with Pipedream, you can orchestrate complex workflows that react to events or schedules, synchronize user data across platforms, and personalize user engagement with cross-channel marketing tools.
import { axios } from "@pipedream/platform" export default defineComponent({ props: { onesignal_rest_api: { type: "app", app: "onesignal_rest_api", } }, async run({steps, $}) { return await axios($, { url: `https://onesignal.com/api/v1/players`, headers: { "Authorization": `Basic ${this.onesignal_rest_api.$auth.rest_api_key}`, }, params: { app_id: `${this.onesignal_rest_api.$auth.app_id}`, }, }) }, })