with Freshchat and Hospitable?
Emit new event when a new conversation is started for a user. See the documentation
Emit new event when a new message is received in a conversation. See the documentation
Fetches details for a specific conversation. See the documentation
Sends a message in a specific conversation. See the documentation
Updates the status of a specific conversation. See the documentation
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hospitable: {
type: "app",
app: "hospitable",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://public.api.hospitable.com/v2/user`,
headers: {
Authorization: `Bearer ${this.hospitable.$auth.oauth_access_token}`,
},
})
},
})