with Gather and Yotpo - Loyalty & Referrals?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gather: {
type: "app",
app: "gather",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.gather.town/api/getEmailGuestlist`,
params: {
spaceId: `${this.gather.$auth.space_id}`,
apiKey: `${this.gather.$auth.api_key}`,
},
})
},
})
The Yotpo - Loyalty & Referrals API unlocks the potential to craft custom loyalty and referral programs by integrating with your tech stack through Pipedream. With this API, you can manage rewards, referrals, and customer loyalty data in real-time. Automate the process of rewarding customers for their engagement, track referral sources, and analyze program effectiveness directly through Pipedream's serverless platform.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
yotpo_loyalty_referrals: {
type: "app",
app: "yotpo_loyalty_referrals",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://loyalty.yotpo.com/api/v2/campaigns`,
headers: {
"Content-Type": `application/json`,
"x-guid": `${this.yotpo_loyalty_referrals.$auth.guid}`,
"x-api-key": `${this.yotpo_loyalty_referrals.$auth.api_key}`,
},
})
},
})