with Lemon Squeezy and Ghost.org (Admin API)?
Emit new event when a new subscription is cancelled.
Emit new event when a new subscription is created.
Emit new event each time a member is deleted from a site.
Emit new event each time a member is updated.
The Lemon Squeezy API lets you manage and sell digital products with ease. On Pipedream, you can integrate Lemon Squeezy with your sales, marketing, and support tools to automate tasks like customer follow-ups, license management, and sales reporting. With Pipedream's serverless platform, you can create workflows that trigger on Lemon Squeezy events or schedule tasks, process data, and connect to a vast array of other apps and services without writing backend infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lemon_squeezy: {
type: "app",
app: "lemon_squeezy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lemonsqueezy.com/v1/users/me`,
headers: {
Authorization: `Bearer ${this.lemon_squeezy.$auth.api_key}`,
"Accept": `application/vnd.api+json`,
"Content-Type": `application/vnd.api+json`,
},
})
},
})
The Ghost.org (Admin API) provides a powerful platform for content management and distribution, allowing developers to programmatically interact with their Ghost site. With this API, you can automate content creation, manage posts, pages, and tags, and dynamically adjust site settings. This enables seamless content workflows, from drafting and scheduling posts to curating featured articles and managing user access. When used with Pipedream, these capabilities expand, enabling integrations with countless other services to create sophisticated, automated content pipelines that can save time and enhance your content strategy.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ghost_org_admin: {
type: "app",
app: "ghost_org_admin",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.ghost_org_admin.$auth.admin_api_url}}/ghost/api/v3/admin/site`,
headers: {
Authorization: `Bearer ${this.ghost_org_admin.$auth.admin_api_key}`,
},
})
},
})