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`,
},
})
},
})
OneSignal (User Auth) uses API keys for authentication. When you connect your OneSignal (User Auth) account, Pipedream securely stores the keys so you can easily authenticate to OneSignal (User Auth) APIs in both code and no-code steps.
You can find the User Auth key in your Dashboard by clicking your icon > Accounts & API Keys > User Auth Key