Best-in-class membership software for independent creators, publishers, educators, podcasters, and more.
Emit new event in Pipedream when a subscribed event is triggered in memberful.
The Memberful API lets you handle memberships and subscriptions with precision. Using Pipedream, you can automate tasks around Memberful's robust features, like syncing member data, managing subscriptions, or triggering events based on membership changes. Pipedream's serverless platform turns these tasks into workflows you can build, run, and observe with ease.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
memberful: {
type: "app",
app: "memberful",
}
},
async run({steps, $}) {
return await axios($, {
method: "POST",
url: `https://${this.memberful.$auth.site}.memberful.com/api/graphql`,
headers: {
Authorization: `Bearer ${this.memberful.$auth.api_key}`,
"Content-Type": `application/json`,
},
params: {
query: `{
members(first: 10) {
totalCount
pageInfo {
endCursor
hasNextPage
}
edges {
node {
id
email
fullName
subscriptions {
id
plan {
id
name
priceCents
}
}
}
}
}
}`,
},
})
},
})
The Klaviyo API grants you the power to automate and personalize your email marketing efforts. With it, you can manage lists, profiles, and campaigns, track event-driven communications, and analyze the results. By leveraging this API on Pipedream, you can create intricate, automated workflows that respond in real-time to your users' behavior, sync data across multiple platforms, and tailor your marketing strategies to improve engagement and conversion rates.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
klaviyo: {
type: "app",
app: "klaviyo",
}
},
async run({steps, $}) {
return await axios($, {
url: ` https://a.klaviyo.com/api/accounts/`,
headers: {
"Authorization": `Klaviyo-API-Key ${this.klaviyo.$auth.api_key}`,
"revision": `2023-12-15`,
},
})
},
})