PHP Class OneSignal\Apps

Mostra file Open project: norkunas/onesignal-php-api

Protected Properties

Property Type Description
$api

Public Methods

Method 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.

Protected Methods

Method Description
resolve ( array $data )

Method Details

__construct() public method

public __construct ( OneSignal $api )
$api OneSignal

add() public method

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

getAll() public method

User authentication key must be set.
public getAll ( ) : array
return array

getOne() public method

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

resolve() protected method

protected resolve ( array $data )
$data array

update() public method

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

Property Details

$api protected_oe property

protected $api