public function send($params)
    {
        try {
            return $this->http->post($this->pushoverApiUrl, [
                'form_params' => $this->paramsWithToken($params),
            ]);
        } catch (RequestException $exception) {
            if ($exception->getResponse()) {
                throw CouldNotSendNotification::serviceRespondedWithAnError($exception->getResponse());
            }
            throw ServiceCommunicationError::communicationFailed($exception);
        } catch (Exception $exception) {
            throw ServiceCommunicationError::communicationFailed($exception);
        }
    }
public function send($params)
    {
        try {
            return $this->http->post($this->pushoverApiUrl, [
                'form_params' => $this->paramsWithToken($params),
            ]);
        } catch (RequestException $exception) {
            if ($exception->getResponse()) {
                throw CouldNotSendNotification::serviceRespondedWithAnError($exception->getResponse());
            }
            throw ServiceCommunicationError::communicationFailed($exception);
        } catch (Exception $exception) {
            throw ServiceCommunicationError::communicationFailed($exception);
        }
    }
public function send ( $ params ) { try { return $ this -> http -> post ( $ this -> pushoverApiUrl , [ 'form_params' => $ this -> paramsWithToken ( $ params ) , ] ) ; } catch ( RequestException $ exception ) { if ( $ exception -> getResponse ( ) ) { throw CouldNotSendNotification :: serviceRespondedWithAnError ( $ exception -> getResponse ( ) ) ; } throw ServiceCommunicationError :: communicationFailed ( $ exception ) ; } catch ( Exception $ exception ) { throw ServiceCommunicationError :: communicationFailed ( $ exception ) ; } }
Send Pushover message.

@link  https://pushover.net/api

@param  array  $params
@return \Psr\Http\Message\ResponseInterface
@throws CouldNotSendNotification
Send Pushover message .