Methods summary
public
|
#
__construct( NNV\OneSignal\OneSignal $oneSignal, string $appIDKey = null, string $restAPIKey = null )
Parameters
- $oneSignal
- OneSignal instance
- $appIDKey
- Application ID
- $restAPIKey
- API Key for REST JSON API
|
public
NNV\OneSignal\OneSignal::execute()
|
#
create( array $notificationData )
Sends notifications to users
Sends notifications to users
Parameters
- $notificationData
- Notification data
Returns
|
public
NNV\OneSignal\OneSignal::execute()
|
#
cancel( string $notificationID )
Stop a scheduled or currently outgoing notification
Stop a scheduled or currently outgoing notification
Parameters
- $notificationID
- Notification ID
Returns
|
public
NNV\OneSignal\OneSignal::execute()
|
#
get( string $notificationID )
View the details of a single notification
View the details of a single notification
Parameters
- $notificationID
- Notification ID
Returns
|
public
NNV\OneSignal\OneSignal::execute()
|
#
all( integer $limit = 10, integer $offset = 0 )
View the details of multiple notifications
View the details of multiple notifications
Parameters
- $limit
- How many notifications to return.
- $offset
- Result offset. Result are sorted by queued_at
Returns
|
public
NNV\OneSignal\OneSignal::execute()
|
#
trackOpen( string $notificationID )
Track when users open a notification
Track when users open a notification
Parameters
- $notificationID
- Notification ID
Returns
|