import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pushinator: {
type: "app",
app: "pushinator",
}
},
async run({steps, $}) {
const data = {
"channel_id": `${this.pushinator.$auth.channel_id}`,
"content": `Test notification content`,
}
return await axios($, {
method: "post",
url: `https://api.pushinator.com/api/v2/notifications/send`,
headers: {
Authorization: `Bearer ${this.pushinator.$auth.api_token}`,
},
data,
})
},
})
Pushinator uses API keys for authentication. When you connect your Pushinator account, Pipedream securely stores the keys so you can easily authenticate to Pushinator APIs in both code and no-code steps.