With the OneSignal (REST API) API, you can create powerful tools to connect with your users and build an engaged audience. The API enables you to create, read, update, and delete push notifications, set up segmentation, and deliver messages to players.
The API also enables you to:
These are just some of the resources available to you when you use OneSignal API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
onesignal_rest_api: {
type: "app",
app: "onesignal_rest_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://onesignal.com/api/v1/players`,
headers: {
"Authorization": `Basic ${this.onesignal_rest_api.$auth.rest_api_key}`,
},
params: {
app_id: `${this.onesignal_rest_api.$auth.app_id}`,
},
})
},
})
OneSignal (REST API) uses API keys for authentication. When you connect your OneSignal (REST API) account, Pipedream securely stores the keys so you can easily authenticate to OneSignal (REST API) APIs in both code and no-code steps.
You can find the your app's REST API Key and App ID in Settings > Keys & IDs.