with ReferralRock and Catch-all Verifier?
ReferralRock's API unlocks the power of referral marketing within your applications, allowing you to automate the integration of your referral programs into your business processes. By leveraging this API on Pipedream, you can create dynamic, serverless workflows that respond to events in ReferralRock, synchronize data with other platforms, reward customer loyalty, and track the performance of your referral campaigns in real-time. This enables a seamless blend of referral marketing with your existing tech stack.
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
catch_all_verifier: {
type: "app",
app: "catch_all_verifier",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.catchallverifier.com/api/v1/verify/single`,
headers: {
"authorization": `${this.catch_all_verifier.$auth.api_key}`,
"accept": `application/json`,
},
params: {
id: `${this.catch_all_verifier.$auth.single_verification_id}`,
},
})
},
})