import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
etrusted: {
type: "app",
app: "etrusted",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.etrusted.com/reviews`,
headers: {
Authorization: `Bearer ${this.etrusted.$auth.oauth_access_token}`,
},
})
},
})
Creates a veto for a specific review. See the documentation
Retrieves a veto for a specific review. See the documentation
Get a list of reviews for a specific channel, a set of channels or for your entire account. See the documentation
Retrieves a list of reviews with fewer properties. See the documentation
eTrusted uses OAuth authentication. When you connect your eTrusted account, Pipedream will open a popup window where you can sign into eTrusted and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any eTrusted API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://login.etrusted.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
&
audience=https://api.etrusted.com
POST
https://login.etrusted.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
&
audience=https://api.etrusted.com