with Notiff (OAuth) and chatra?
Send a new notification to a user or system via notiff.io. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
notiff_io: {
type: "app",
app: "notiff_io",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://notiff.io/api/1.1/wf/me`,
headers: {
Authorization: `Bearer ${this.notiff_io.$auth.oauth_access_token}`,
},
})
},
})
The Chatra API enables the automation of customer support processes by allowing the programmatic sending of messages, retrieval of chat history, and management of ongoing conversations. With Pipedream's serverless platform, you can harness this API to integrate real-time chat capabilities with other applications, set up automated responses based on specific triggers, and analyze customer interactions to enhance support strategies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chatra: {
type: "app",
app: "chatra",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.chatra.io/api/messages/XGDsxHtLppJTJ3vZk`,
headers: {
"Content-Type": `application/json`,
"Authorization": `Chatra.Simple ${this.chatra.$auth.public_key}:${this.chatra.$auth.secret_key}`,
},
})
},
})