paragraph1\phpFCM\Client::send PHP Method

send() public method

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
return Psr\Http\Message\ResponseInterface
    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)]);
    }