with Freshchat and Click2Mail?
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
Creates a new document in your account from an uploaded file or a URL. See the documentation for file. See the documentation for URL
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 Click2Mail API enables automated mailing solutions, letting you integrate direct mail processes within your digital workflows. On Pipedream, you can harness this API to craft serverless workflows that interact with other apps and services. Create, manage, and send postal mail without leaving your digital ecosystem. Automate mail for marketing, invoicing, or any correspondence that requires a physical mail presence.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
click2mail2: {
type: "app",
app: "click2mail2",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.click2mail2.$auth.subdomain}.click2mail.com/molpro/credit`,
headers: {
"Accept": `application/json`,
},
auth: {
username: `${this.click2mail2.$auth.username}`,
password: `${this.click2mail2.$auth.password}`,
},
})
},
})