with Sanity and Rewardful?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sanity: {
type: "app",
app: "sanity",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.sanity.$auth.project_id}.api.sanity.io/v2021-06-07/data/query/production`,
headers: {
Authorization: `Bearer ${this.sanity.$auth.api_token}`,
},
params: {
query: `*`,
},
})
},
})
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: ``,
},
})
},
})