with ConvertKit and HTML/CSS to Image?
Emit new event when a new subscriber is activated. See docs here
Emit new event when a user unsubscribers. See docs here
Emit new event for each selected event types. See docs here
ConvertKit's API offers granular control over email marketing campaigns, allowing users to automate subscriber management, broadcast sending, and sequence setup. Utilize Pipedream's power to react to events, sync data across platforms, or create personalized, timely campaigns. Pipedream's serverless platform connects ConvertKit with hundreds of other apps, enabling automated workflows that save time and improve engagement.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
convertkit: {
type: "app",
app: "convertkit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.convertkit.com/v3/account`,
params: {
api_key: `${this.convertkit.$auth.api_key}`,
api_secret: `${this.convertkit.$auth.api_secret}`,
},
})
},
})
The HTML/CSS to Image API lets you programmatically create images from HTML and CSS, which is perfect for generating custom graphics, charts, or even to convert web content for sharing on social media. On Pipedream, you can harness this API within a serverless workflow, triggering image generation from various events, managing the data flow, and integrating with countless other apps to create powerful automations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
html_css_to_image: {
type: "app",
app: "html_css_to_image",
}
},
async run({steps, $}) {
const data = {
"url": `https://google.com`,
}
return await axios($, {
method: "post",
url: `https://hcti.io/v1/image`,
auth: {
username: `${this.html_css_to_image.$auth.user_id}`,
password: `${this.html_css_to_image.$auth.api_key}`,
},
data,
})
},
})