with Freshchat and CommCare?
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`,
},
})
},
})
The CommCare API provides programmatic access to CommCareHQ data, allowing developers to build powerful automations and integrations. With this API, you can retrieve and update data such as forms, cases, and users. These capabilities enable you to streamline workflows, synchronize datasets across platforms, and extend CommCare's functionality.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
commcare: {
type: "app",
app: "commcare",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.commcarehq.org/api/v0.5/identity/`,
headers: {
"Authorization": `ApiKey ${this.commcare.$auth.email}:${this.commcare.$auth.api_key} `,
},
})
},
})