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`,
},
})
},
})
Pushsafer uses API keys for authentication. When you connect your Pushsafer account, Pipedream securely stores the keys so you can easily authenticate to Pushsafer APIs in both code and no-code steps.
Your private or alias key (required) is required for authentication each time a push notification is sent. You can find it in your Pushsafer dashboard.