with ntfy and OneSignal (User Auth)?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ntfy: {
type: "app",
app: "ntfy",
}
},
async run({steps, $}) {
const data = `Backup successful 😀`
return await axios($, {
method: "post",
url: `${this.ntfy.$auth.server}/test`,
headers: {
"Content-Type": "text/plain"
},
data,
})
},
})
The OneSignal (User Auth) API on Pipedream empowers developers to streamline communication by automating notifications and messaging. With it, you can handle user data, send targeted notifications to specific user segments, and track message engagement. By leveraging Pipedream's serverless platform, you can create intricate workflows to interact with the API, reacting to events across various apps or triggering actions based on user behavior.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
onesignal_user_auth: {
type: "app",
app: "onesignal_user_auth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://onesignal.com/api/v1/apps/`,
headers: {
"Content-Type": `application/json`,
"Authorization": `Basic ZTUwMTQ0ODAtMjQ2Ni00YzY5LWIyNGMtYWUwMGM2MzUyZDM3`,
},
})
},
})