with SendPulse and Cflow?
Make a GET request to https://api.sendpulse.com/emails/{email}
Make a POST request to https://api.sendpulse.com/addressbooks/{id}/emails/unsubscribe
The SendPulse API taps into the power of multi-channel marketing automation, enabling you to manage mailing lists, send emails, and analyze campaign performance. By leveraging Pipedream, you can stitch SendPulse into a network of apps to create automated workflows. Imagine syncing new sign-ups from your CRM to SendPulse, triggering personalized email sequences based on customer behavior, or pulling campaign stats into your analytics dashboard - All in real-time and without writing a single line of server-side code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sendpulse: {
type: "app",
app: "sendpulse",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.sendpulse.com/senders`,
headers: {
Authorization: `Bearer ${this.sendpulse.$auth.oauth_access_token}`,
},
})
},
})
The Cflow API lets you automate and integrate your workflow management, enhancing your business processes with custom automations. With Pipedream, you can harness this API to create, update, and track workflows without manual interference. This enables you to connect Cflow with various other apps and services, streamlining your processes from initiation to completion.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cflow: {
type: "app",
app: "cflow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://us.cflowapps.com/integromat/api/cflow/getworkflows`,
headers: {
"Content-Type": `application/json`,
"apikey": `${this.cflow.$auth.apikey}`,
"userkey": `${this.cflow.$auth.userkey}`,
"username": `${this.cflow.$auth.username}`,
},
})
},
})