PHP Class OneSignal\Notifications

Afficher le fichier Open project: norkunas/onesignal-php-api

Protected Properties

Свойство Type Description
$api

Méthodes publiques

Méthode Description
__construct ( OneSignal $api )
add ( array $data ) : array Send new notification with provided data.
cancel ( string $id ) : array Cancel notification.
getAll ( integer $limit = self::NOTIFICATIONS_LIMIT, integer $offset ) : array Get information about all notifications.
getOne ( string $id ) : array Get information about notification with provided ID.
open ( string $id ) : array Open notification.

Méthodes protégées

Méthode Description
resolve ( array $data )

Method Details

__construct() public méthode

public __construct ( OneSignal $api )
$api OneSignal

add() public méthode

Application authentication key and ID must be set.
public add ( array $data ) : array
$data array
Résultat array

cancel() public méthode

Application authentication key and ID must be set.
public cancel ( string $id ) : array
$id string Notification ID
Résultat array

getAll() public méthode

Application authentication key and ID must be set.
public getAll ( integer $limit = self::NOTIFICATIONS_LIMIT, integer $offset ) : array
$limit integer How many notifications to return (max 50)
$offset integer Results offset (results are sorted by ID)
Résultat array

getOne() public méthode

Application authentication key and ID must be set.
public getOne ( string $id ) : array
$id string Notification ID
Résultat array

open() public méthode

Application authentication key and ID must be set.
public open ( string $id ) : array
$id string Notification ID
Résultat array

resolve() protected méthode

protected resolve ( array $data )
$data array

Property Details

$api protected_oe property

protected $api