PHP 클래스 OneSignal\Notifications

파일 보기 프로젝트 열기: norkunas/onesignal-php-api

보호된 프로퍼티들

프로퍼티 타입 설명
$api

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
resolve ( array $data )

메소드 상세

__construct() 공개 메소드

public __construct ( OneSignal $api )
$api OneSignal

add() 공개 메소드

Application authentication key and ID must be set.
public add ( array $data ) : array
$data array
리턴 array

cancel() 공개 메소드

Application authentication key and ID must be set.
public cancel ( string $id ) : array
$id string Notification ID
리턴 array

getAll() 공개 메소드

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)
리턴 array

getOne() 공개 메소드

Application authentication key and ID must be set.
public getOne ( string $id ) : array
$id string Notification ID
리턴 array

open() 공개 메소드

Application authentication key and ID must be set.
public open ( string $id ) : array
$id string Notification ID
리턴 array

resolve() 보호된 메소드

protected resolve ( array $data )
$data array

프로퍼티 상세

$api 보호되어 있는 프로퍼티

protected $api