PHP Класс paragraph1\phpFCM\Client

Автор: palbertini
Наследование: implements paragraph1\phpFCM\ClientInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
injectHttpClient ( GuzzleHttp\ClientInterface $client )
send ( Message $message ) : Psr\Http\Message\ResponseInterface sends your notification to the google servers and returns a guzzle repsonse object containing their answer.
setApiKey ( string $apiKey ) : Client add your server api key here read how to obtain an api key here: https://firebase.google.com/docs/server/setup#prerequisites
setProxyApiUrl ( string $url ) : Client people can overwrite the api url with a proxy server url of their own

Приватные методы

Метод Описание
getApiUrl ( )

Описание методов

injectHttpClient() публичный Метод

public injectHttpClient ( GuzzleHttp\ClientInterface $client )
$client GuzzleHttp\ClientInterface

send() публичный Метод

sends your notification to the google servers and returns a guzzle repsonse object containing their answer.
public send ( Message $message ) : Psr\Http\Message\ResponseInterface
$message Message
Результат Psr\Http\Message\ResponseInterface

setApiKey() публичный Метод

add your server api key here read how to obtain an api key here: https://firebase.google.com/docs/server/setup#prerequisites
public setApiKey ( string $apiKey ) : Client
$apiKey string
Результат Client

setProxyApiUrl() публичный Метод

people can overwrite the api url with a proxy server url of their own
public setProxyApiUrl ( string $url ) : Client
$url string
Результат Client