src/Bridge.php
private function send($method, $uri, $data, $type = 'json')
    {
        // Make the Request to Watson.
        $response = $this->request($method, $uri, [$type => $data]);
        // Request Failed.
        if ($response->getStatusCode() != 200) {
            // Throw Watson Bridge Exception.
            $this->failedRequest($response);
        }

        // We return response.
        return $response;
    }
private function send($method, $uri, $data, $type = 'json')
    {
        // Make the Request to Watson.
        $response = $this->request($method, $uri, [$type => $data]);
        // Request Failed.
        if ($response->getStatusCode() != 200) {
            // Throw Watson Bridge Exception.
            $this->failedRequest($response);
        }

        // We return response.
        return $response;
    }
private function send ( $ method , $ uri , $ data , $ type = 'json' ) { // Make the Request to Watson. $ response = $ this -> request ( $ method , $ uri , [ $ type => $ data ] ) ; // Request Failed. if ( $ response -> getStatusCode ( ) != 200 ) { // Throw Watson Bridge Exception. $ this -> failedRequest ( $ response ) ; } // We return response. return $ response ; }
Send a Request to Watson.

@param string $method
@param string $uri
@param mixed  $data
@param string $type

@return \GuzzleHttp\Psr7\Response
Send a Request to Watson .