src/Client.php
protected function request($verb, $path, $parameters = [])
    {
        $client = $this->httpClient;
        $url = $this->getUrlFromPath($path);
        $verb = strtolower($verb);
        $config = $this->getConfigForVerbAndParameters($verb, $parameters);

        try {
            $response = $client->$verb($url, $config);
        } catch (HttpClientException $e) {
            $this->handleRequestException($e);
        }

        $this->parseRateLimitFromResponse($response);

        return json_decode($response->getBody());
    }
protected function request($verb, $path, $parameters = [])
    {
        $client = $this->httpClient;
        $url = $this->getUrlFromPath($path);
        $verb = strtolower($verb);
        $config = $this->getConfigForVerbAndParameters($verb, $parameters);

        try {
            $response = $client->$verb($url, $config);
        } catch (HttpClientException $e) {
            $this->handleRequestException($e);
        }

        $this->parseRateLimitFromResponse($response);

        return json_decode($response->getBody());
    }
protected function request ( $ verb , $ path , $ parameters = [ ] ) { $ client = $ this -> httpClient ; $ url = $ this -> getUrlFromPath ( $ path ) ; $ verb = strtolower ( $ verb ) ; $ config = $ this -> getConfigForVerbAndParameters ( $ verb , $ parameters ) ; try { $ response = $ client -> $ verb ( $ url , $ config ) ; } catch ( HttpClientException $ e ) { $ this -> handleRequestException ( $ e ) ; } $ this -> parseRateLimitFromResponse ( $ response ) ; return json_decode ( $ response -> getBody ( ) ) ; }
Makes a request to the Uber API and returns the response.

@param    string   $verb       The Http verb to use
@param    string   $path       The path of the APi after the domain
@param    array    $parameters Parameters

@return   stdClass             The JSON response from the request
@throws   Exception
Makes a request to the Uber API and returns the response .