Property | Type | Description | |
---|---|---|---|
$apiKey | string | ||
$apiUrl | string | ||
$browser | Buzz\Browser | ||
$client | Buzz\Client\MultiCurl | ||
$registrationIdMaxCount | string | ||
$responses | Buzz\Message\Response[] |
Method | Description | |
---|---|---|
__construct ( $apiKey, null $apiUrl = null ) | Class constructor. | |
getResponses ( ) : Buzz\Message\Response[] | Returns the responses. | |
send ( mixed $data, array $registrationIds = [], array $options = [] ) : boolean | Sends the message via the GCM server. | |
sendTo ( mixed $data, string $topic = '/topics/global', array $options = [] ) : boolean | Sends the data to the given registration token, notification key, or topic via the GCM server. |
Method | Description | |
---|---|---|
getHeaders ( ) : array | Returns the headers. |
public __construct ( $apiKey, null $apiUrl = null ) | ||
$apiKey | ||
$apiUrl | null |
public getResponses ( ) : Buzz\Message\Response[] | ||
return | Buzz\Message\Response[] |
public sendTo ( mixed $data, string $topic = '/topics/global', array $options = [] ) : boolean | ||
$data | mixed | |
$topic | string | The value must be a registration token, notification key, or topic. Default global topic. |
$options | array | to add along with message, such as collapse_key, time_to_live, delay_while_idle |
return | boolean |