with Kustomer and Local Reviews?
Emit new event when a conversation is created in Kustomer.
Emit new event when a new customer is added to Kustomer.
Emit new event when a new message is created in a conversation.
Emit new event when an existing conversation is updated in Kustomer.
Emit new event when an existing customer's details are updated in Kustomer.
Creates a new conversation in Kustomer. See the documentation
Updates an existing conversation in Kustomer. See the documentation
Updates an existing customer in Kustomer. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kustomer: {
type: "app",
app: "kustomer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.kustomer.$auth.subdomain}.api.kustomerapp.com/v1/customers`,
headers: {
Authorization: `Bearer ${this.kustomer.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
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}`,
},
})
},
})