Download the PHP package norkunas/onesignal-php-api without Composer
On this page you can find all versions of the php package norkunas/onesignal-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package onesignal-php-api
OneSignal API for PHP
Install
Note: All examples are for v2, if you are using PHP <7.3 please read v1 documentation.
This packages requires a PSR-18 HTTP client and PSR-17 HTTP factories to work. You can choose any from psr/http-client-implementation and psr/http-factory-implementation
Example with Symfony HttpClient and nyholm/psr7 http factories, install it with Composer:
And now configure the OneSignal api client:
How to use this library
Applications API
View the details of all of your current OneSignal applications (official documentation):
View the details of a single OneSignal application (official documentation):
Create a new OneSignal app (official documentation):
Update the name or configuration settings of OneSignal application (official documentation):
Create Segments (official documentation):
Delete Segments (official documentation):
View the details of all the outcomes associated with your app (official documentation):
Devices API
View the details of multiple devices in one of your OneSignal apps (official documentation):
View the details of an existing device in your configured OneSignal application (official documentation):
Register a new device to your configured OneSignal application (official documentation):
Update an existing device in your configured OneSignal application (official documentation):
Update an existing device's tags in one of your OneSignal apps using the External User ID (official documentation):
Notifications API
View the details of multiple notifications (official documentation):
Get the details of a single notification (official documentation):
Create and send notifications or emails to a segment or individual users. You may target users in one of three ways using this method: by Segment, by Filter, or by Device (at least one targeting parameter must be specified) (official documentation):
Mark notification as opened (official documentation):
Stop a scheduled or currently outgoing notification (official documentation):
Notification History (official documentation):
Questions?
If you have any questions please open a discussion.
License
This library is released under the MIT License. See the bundled LICENSE file for details.
All versions of onesignal-php-api with dependencies
ext-json Version *
psr/http-client Version ^1.0
psr/http-client-implementation Version ^1.0
psr/http-factory Version ^1.0
psr/http-factory-implementation Version ^1.0
symfony/deprecation-contracts Version ^2.1|^3.0
symfony/options-resolver Version ^4.4|^5.0|^6.0|^7.0