ActiveTrail is the world's friendliest email marketing platform, newsletter software and marketing automation software.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
ActiveTrail's API lets you integrate ActiveTrail's powerful email marketing and
automation features into your own app or service. With the API, you can:
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`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})