Yotpo is an eCommerce marketing platform with the most advanced solutions for customer reviews, visual marketing, loyalty, referrals, and SMS marketing.
Go to siteimport { 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}`,
},
})
},
})
Yotpo - Reviews & Ratings uses OAuth authentication. When you connect your Yotpo - Reviews & Ratings account, Pipedream will open a popup window where you can sign into Yotpo - Reviews & Ratings and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Yotpo - Reviews & Ratings API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://yap.yotpo.com/#/app_market_authorization?app_market_mode&application_id=d870f05a85ac44df86cf77e86d788a87
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://developers.yotpo.com/v2/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}