Node package manager
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
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alerty: {
type: "app",
app: "alerty",
}
},
async run({steps, $}) {
const data = {
"title": `alerty.dev test notification`,
"message": `My first notification through the Alerty API via Pipedream!`,
}
return await axios($, {
method: "post",
url: `${this.alerty.$auth.notification_url}`,
headers: {
Authorization: `Bearer ${this.alerty.$auth.api_key}`,
},
data,
})
},
})