with Notiff (OAuth) and Kommo?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kommo: {
type: "app",
app: "kommo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.kommo.$auth.subdomain}.kommo.com/api/v4/account`,
headers: {
Authorization: `Bearer ${this.kommo.$auth.oauth_access_token}`,
},
})
},
})