Download the PHP package namnv609/php-onesignal-sdk without Composer
On this page you can find all versions of the php package namnv609/php-onesignal-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download namnv609/php-onesignal-sdk
More information about namnv609/php-onesignal-sdk
Files in namnv609/php-onesignal-sdk
Package php-onesignal-sdk
Short Description PHP SDK for OneSignal RESTful API
License MIT
Informations about the package php-onesignal-sdk
PHP SDK for OneSignal RESTful API
OneSignal is a high volume and reliable push notification service for websites and mobile applications. We support all major native and mobile platforms by providing dedicated SDKs for each platform, a RESTful server API, and an online dashboard for marketers to design and send push notifications.
System requirements
- PHP >= 5.5
Installation
Using Composer
composer require namnv609/php-onesignal-sdk
or you can include the following in your composer.json
"namnv609/php-onesignal-sdk": "1.0"
Response format
status
: Boolean.true
orfalse
(status code is 200 or otherwise)code
: Integer. Status coderesponse
: Mixed. You can view OneSignal result detail for each API at: https://documentation.onesignal.com/reference
Usage Instructions
First, create a new OneSignal
instance to make configuring the library for usage.
Once the OneSignal
instance has been registered. You may use it like so:
Application
Application body parameters: Create and Update
-
View apps
-
View an app
-
Create an app
- Update an app
Player (Device)
Player (Device) body parameters: Create, Update, New session, New purchase, Increment session length and CSV export
-
View devices
-
View device
-
Add a device
-
Edit device
-
New session
-
New purchase (Currently, i've support one item per request)
-
Increment session length
- CSV export
Notification
Notification body parameters: Create
-
Create notification
-
Cancel notification
-
View notification
-
View notifications
- Track open