src/Mremi/Flowdock/Api/Push/Push.php
protected function sendMessage(BaseMessageInterface $message, $baseUrl, array $options = array())
    {
        $client = $this->createClient(sprintf('%s/%s', $baseUrl, $this->flowApiToken));

        $response = $client->post(null, array_merge(
            $options, [
                'headers' => ['Content-Type' => 'application/json'],
                'json'    => $message->getData()
            ]
        ));

        $message->setResponse($response);

        return !$message->hasResponseErrors();
    }
protected function sendMessage(BaseMessageInterface $message, $baseUrl, array $options = array())
    {
        $client = $this->createClient(sprintf('%s/%s', $baseUrl, $this->flowApiToken));

        $response = $client->post(null, array_merge(
            $options, [
                'headers' => ['Content-Type' => 'application/json'],
                'json'    => $message->getData()
            ]
        ));

        $message->setResponse($response);

        return !$message->hasResponseErrors();
    }
protected function sendMessage ( BaseMessageInterface $ message , $ baseUrl , array $ options = array ( ) ) { $ client = $ this -> createClient ( sprintf ( '%s/%s' , $ baseUrl , $ this -> flowApiToken ) ) ; $ response = $ client -> post ( null , array_merge ( $ options , [ 'headers' => [ 'Content-Type' => 'application/json' ] , 'json' => $ message -> getData ( ) ] ) ) ; $ message -> setResponse ( $ response ) ; return ! $ message -> hasResponseErrors ( ) ; }
Sends a message to a flow

@param BaseMessageInterface $message A message instance to send
@param string               $baseUrl A base URL
@param array                $options An array of options used by request

@return boolean
Sends a message to a flow