Yotpo is an eCommerce marketing platform with the most advanced solutions for customer reviews, visual marketing, loyalty, referrals, and SMS marketing.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
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}`,
},
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// 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
},
})