with Mailosaur and Rewardful?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailosaur: {
type: "app",
app: "mailosaur",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://mailosaur.com/api/servers`,
auth: {
username: `api`,
password: `${this.mailosaur.$auth.api_key}`,
},
})
},
})
Rewardful is a potent API for managing affiliate and referral programs directly within your application or platform. By connecting Rewardful with Pipedream, you can automate the tracking, attribution, and compensation of affiliate-driven customer conversions, reducing manual overhead and increasing the efficiency of your marketing efforts. With Rewardful's API, you can create affiliates, track campaigns, and disburse rewards seamlessly.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rewardful: {
type: "app",
app: "rewardful",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.getrewardful.com/v1/affiliates`,
auth: {
username: `${this.rewardful.$auth.api_secret}`,
password: ``,
},
})
},
})