Send & receive of Push Notifications
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Pushsafer is an API that provides a comprehensive suite of tools for creating
and sending push notifications to mobile and desktop devices. With Pushsafer,
you can build a wide range of applications. Here are just some of the
possibilities:
Pushsafer is an incredibly powerful tool for creating and sending push
notifications, with endless possibilities for customization and usage.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pushsafer: {
type: "app",
app: "pushsafer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.pushsafer.com/api`,
params: {
"k": `${this.pushsafer.$auth.private_key}`,
"d": `${this.pushsafer.$auth.device}`,
"m": `Message / text of the push notification`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})