with Mailtrap and Yotpo - Reviews & Ratings?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailtrap: {
type: "app",
app: "mailtrap",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://mailtrap.io/api/accounts`,
headers: {
Authorization: `Bearer ${this.mailtrap.$auth.api_token}`,
"accept": `application/json`,
},
})
},
})
Yotpo - Reviews & Ratings API empowers businesses to leverage customer feedback by managing and utilizing user-generated content. With this API, you can programmatically fetch reviews, respond to customer feedback, and analyze sentiment to improve products and services. Integrating it with Pipedream allows for automation of these tasks, streamlining the process of collecting and acting on customer insights.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
yotpo: {
type: "app",
app: "yotpo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://developers.yotpo.com/v2/${this.yotpo.$auth.app_key}/orders?access_token=${this.yotpo.$auth.oauth_access_token}`,
headers: {
Authorization: `Bearer ${this.yotpo.$auth.oauth_access_token}`,
},
})
},
})