with Rewardful and TestLocally?
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: ``,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
testlocally: {
type: "app",
app: "testlocally",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://testlocal.ly/api/v0/me`,
headers: {
Authorization: `Bearer ${this.testlocally.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})