with Local Reviews and Freshchat?
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: {
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
freshchat: {
type: "app",
app: "freshchat",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.freshchat.$auth.chat_url}/accounts/configuration`,
headers: {
Authorization: `Bearer ${this.freshchat.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})