import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
notiff: {
type: "app",
app: "notiff",
}
},
async run({steps, $}) {
const data = {
"id_notification_source": `${this.notiff.$auth.notification_source_id}`,
"title": `New Notification`,
"description": `Notification from Pipedream`,
"url": `https://pipedream.com`,
}
return await axios($, {
method: "post",
url: `https://notiff.io/api/1.1/wf/create_notification`,
headers: {
"content-type": `application/json`,
},
data,
})
},
})
Notiff (API Key) uses API keys for authentication. When you connect your Notiff (API Key) account, Pipedream securely stores the keys so you can easily authenticate to Notiff (API Key) APIs in both code and no-code steps.