with Coupontools and ProveSource?
The Coupontools API offers a robust set of functions for creating, managing, and tracking digital coupons and deals. With Pipedream, you can automate workflows that integrate with Coupontools to enhance customer engagement, streamline promotions, and gather insightful data on coupon usage. By leveraging Pipedream's capability to connect with various apps and services, you can create multi-step workflows that react to events, process data, and perform actions across your marketing stack.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
coupontools: {
type: "app",
app: "coupontools",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.coupontools.com/v4/subaccount/list`,
headers: {
"Content-Type": `application/json`,
"X-Client-Id": `${this.coupontools.$auth.client_id}`,
"X-Client-Secret": `${this.coupontools.$auth.client_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
provesource: {
type: "app",
app: "provesource",
}
},
async run({steps, $}) {
const data = {
"email": `{{your_email}}`,
"name": `{{your_name}}`,
}
return await axios($, {
method: "POST",
url: `${this.provesource.$auth.webhook_url}`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})