Influence word of mouth instead of waiting for it to happen.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
With ReferralRock API, you can build automated referral programs that track,
manage, and measure the success of your referral program. The API allows you
to easily create, integrate, and customize referral programs that you can use
to drive signups and increase sales.
Powered by ReferralRock API, you can build the following programs:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
referralrock: {
type: "app",
app: "referralrock",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.referralrock.com/api/programs`,
auth: {
username: `${this.referralrock.$auth.public_key}`,
password: `${this.referralrock.$auth.private_key}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})