with WalleTap and Active Trail?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
walletap: {
type: "app",
app: "walletap",
}
},
async run({steps, $}) {
const data = {
"title": `Flash offer!`,
"content": `Get 70% discount now`,
}
return await axios($, {
method: "post",
url: `https://api.walletap.io/template/${this.walletap.$auth.template_id}/notification`,
headers: {
"x-api-key": `${this.walletap.$auth.api_key}`,
},
data,
})
},
})
ActiveTrail’s API allows for the automation of email marketing campaigns, contact management, and event-triggered communications. By integrating ActiveTrail with Pipedream, you can create workflows that react to specific triggers, such as new subscriber sign-ups, and perform actions like updating contact lists or sending personalized emails. This level of automation can save time, improve customer engagement, and ensure timely communications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
active_trail: {
type: "app",
app: "active_trail",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://webapi.mymarketing.co.il/api/account/balance`,
headers: {
"Authorization": `${this.active_trail.$auth.access_token}`,
"Accept": `application/json`,
},
})
},
})