with Freshchat and Instantly?
Emit new event when a new background job has completed. See the documentation
Emit new event when a new conversation is started for a user. See the documentation
Emit new event when a new email is received. See the documentation
Emit new event when a new message is received in a conversation. See the documentation
Emit new event when a new lead is created. See the documentation
Fetches details for a specific conversation. See the documentation
Adds a lead or leads to a campaign for tracking or further actions. 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: {
instantly: {
type: "app",
app: "instantly",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.instantly.ai/api/v2/accounts`,
headers: {
Authorization: `Bearer ${this.instantly.$auth.api_key}`,
},
})
},
})