with Rewardful and Freelancer?
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: ``,
},
})
},
})
The Freelancer API offers a programmatic way to interact with Freelancer.com, enabling you to automate tasks like searching for projects, posting jobs, managing bids, and communicating with users. By integrating this API with Pipedream, you can create powerful, serverless workflows that streamline your freelance business operations or help you build tools that assist others in managing their freelancing tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
freelancer: {
type: "app",
app: "freelancer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.freelancer.com/api/users/0.1/self/`,
headers: {
Authorization: `Bearer ${this.freelancer.$auth.oauth_access_token}`,
"freelancer-oauth-v1": `${this.freelancer.$auth.oauth_access_token}`,
},
})
},
})