with VerticalResponse and Local Reviews?
Retrieve the survey link associated with the connected license. See the documentation
Send a review invitation to a customer via email. See the documentation
Send a review invitation to a customer via SMS. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
verticalresponse: {
type: "app",
app: "verticalresponse",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://vrapi.verticalresponse.com/api/v1/contacts?type=basic`,
headers: {
Authorization: `Bearer ${this.verticalresponse.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
local_reviews: {
type: "app",
app: "local_reviews",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.localreviews.com/api/v2/oauth/oauth-request/get-survey-url`,
headers: {
Authorization: `Bearer ${this.local_reviews.$auth.oauth_access_token}`,
},
})
},
})