OneSignal

FREE
By dimashirokov
Updated 10 months ago
Communication
0.2/10
Popularity
57958ms
Latency
-
Success Rate

OneSignal API Documentation

Add push notification service to websites and apps.

View API Details
POSTaddDevice
POSTaddDevicePurchase
POSTcancelNotification
POSTcreateApp
POSTcreateDeviceSession
POSTeditDevice
POSTgetApp
POSTgetApps
POSTgetDevice
POSTgetDevices
POSTgetNotification
POSTgetNotifications
POSTnotificationTest
POSTsendNotification
POSTtrackNotificationOpen
POSTupdateApp
POSTupdateDeviceSessionLength
POSTaddDevicePurchase

Track a new purchase in your app

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
purchaseAmountSTRING
REQUIREDRequired: The amount, in USD, spent purchasing the item.
deviceIdSTRING
REQUIREDRequired: The device's OneSignal ID.
purchaseIsoSTRING
REQUIREDRequired: The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount.
purchaseSkuSTRING
REQUIREDRequired: The unique identifier of the purchased item.
Optional Parameters
existingSELECT
OPTIONALPass true on the first run of your app if you're tracking existing non-consumable purchases. This prevents tracking the same purchases more than once if the user re-installs your app.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication