with npm and Notiff (API Key)?
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
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: {
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,
})
},
})