with Chargeblast and Checkout.com?
Emit new event for each alert in Chargeblast. See the documentation
The Chargeblast API allows users to manage their SMS and email marketing campaigns directly through API calls. By integrating with the Chargeblast API on Pipedream, you can automate the process of creating, updating, and monitoring your marketing campaigns. Pipedream's serverless platform facilitates the creation of workflows that can respond in real-time to various triggers, such as incoming webhook data, scheduled times, or actions from other apps. With these capabilities, you can streamline your marketing operations, personalize your customer interactions, and execute complex sequences of tasks with ease.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chargeblast: {
type: "app",
app: "chargeblast",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.chargeblast.io/api/alerts`,
params: {
api_key: `${this.chargeblast.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
checkout_com: {
type: "app",
app: "checkout_com",
}
},
async run({steps, $}) {
const timestamp = Date.now()
const data = {
"email": `test-${timestamp}@example.com`
}
return await axios($, {
method: "post",
url: `https://api.${this.checkout_com.$auth.authorization_server}/customers`,
headers: {
Authorization: `Bearer ${this.checkout_com.$auth.oauth_access_token}`,
"accept": `application/json`,
},
data,
})
},
})