PHP Class OneSignal\Apps

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 Create a new application with provided data.
getAll ( ) : array Get information about all your created applications.
getOne ( string $id ) : array Get information about application with provided ID.
update ( string $id, array $data ) : array Update application with provided data.

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

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

getAll() public méthode

User authentication key must be set.
public getAll ( ) : array
Résultat array

getOne() public méthode

User authentication key must be set.
public getOne ( string $id ) : array
$id string ID of your application
Résultat array

resolve() protected méthode

protected resolve ( array $data )
$data array

update() public méthode

User authentication key must be set.
public update ( string $id, array $data ) : array
$id string ID of your application
$data array New application data
Résultat array

Property Details

$api protected_oe property

protected $api