public function send(Message $message)
    {
        return $this->guzzleClient->post(
            $this->getApiUrl(),
            [
                'headers' => [
                    'Authorization' => sprintf('key=%s', $this->apiKey),
                    'Content-Type' => 'application/json'
                ],
                'body' => json_encode($message)
            ]
        );
    }
public function send(Message $message)
    {
        return $this->guzzleClient->post(
            $this->getApiUrl(),
            [
                'headers' => [
                    'Authorization' => sprintf('key=%s', $this->apiKey),
                    'Content-Type' => 'application/json'
                ],
                'body' => json_encode($message)
            ]
        );
    }
public function send ( Message $ message ) { return $ this -> guzzleClient -> post ( $ this -> getApiUrl ( ) , [ 'headers' => [ 'Authorization' => sprintf ( 'key=%s' , $ this -> apiKey ) , 'Content-Type' => 'application/json' ] , 'body' => json_encode ( $ message ) ] ) ; }
sends your notification to the google servers and returns a guzzle repsonse object
containing their answer.

@param Message $message

@return \Psr\Http\Message\ResponseInterface
@throws \GuzzleHttp\Exception\RequestException
sends your notification to the google servers and returns a guzzle repsonse object containing their answer .