Method |
Description |
|
__construct ( OneSignal $api ) |
|
|
add ( array $data ) : array |
Register a device for your application. |
|
csvExport ( array $extraFields = [] ) : array |
Export all information about devices in a CSV format for your application. |
|
getAll ( integer $limit = self::DEVICES_LIMIT, integer $offset ) : array |
Get information about all registered devices for your application. |
|
getOne ( string $id ) : array |
Get information about device with provided ID. |
|
onFocus ( string $id, array $data ) : array |
Increment the device's total session length. |
|
onPurchase ( string $id, array $data ) : array |
Track a new purchase. |
|
onSession ( string $id, array $data ) : array |
Call on new device session in your app. |
|
update ( string $id, array $data ) : array |
Update existing registered device for your application with provided data. |
|