with Easypromos and Trustpilot (Customer)?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
easypromos: {
type: "app",
app: "easypromos",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.easypromosapp.com/v2/promotions`,
headers: {
Authorization: `Bearer ${this.easypromos.$auth.api_key}`,
},
})
},
})
The Trustpilot (Customer) API lets you tap into the rich pool of customer review data on Trustpilot. You can use it to automate the process of collecting and managing reviews, responding to feedback, and analyzing customer sentiment. With Pipedream's integration, you can trigger workflows based on new reviews, aggregate review data for analysis, and sync Trustpilot data with other services like CRMs, support tickets, and marketing tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
trustpilot: {
type: "app",
app: "trustpilot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://invitations-api.trustpilot.com/v1/private/business-units/${this.trustpilot.$auth.business_unit_id}/templates`,
headers: {
Authorization: `Bearer ${this.trustpilot.$auth.oauth_access_token}`,
},
})
},
})