with npm and Freshchat?
Emit new event with the latest count of downloads for an npm package. See the documentation
Emit new event when a new version of an npm package is published. See the documentation
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`,
},
})
},
})