PHP 클래스 paragraph1\phpFCM\Client

저자: palbertini
상속: implements paragraph1\phpFCM\ClientInterface
파일 보기 프로젝트 열기: paragraph1/php-fcm 1 사용 예제들

공개 메소드들

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