public function makeRequest(string $verb, string $path, array $query = [], array $options = [])
    {
        try {
            $response = $this->client->$verb(self::BASE_URI . $path, $options);
        } catch (ClientException $e) {
            print $e->getMessage();
            $response = $e->getResponse();
        }

        return $response;
    }
public function makeRequest(string $verb, string $path, array $query = [], array $options = [])
    {
        try {
            $response = $this->client->$verb(self::BASE_URI . $path, $options);
        } catch (ClientException $e) {
            print $e->getMessage();
            $response = $e->getResponse();
        }

        return $response;
    }
public function makeRequest ( string $ verb , string $ path , array $ query = [ ] , array $ options = [ ] ) { try { $ response = $ this -> client -> $ verb ( self :: BASE_URI . $ path , $ options ) ; } catch ( ClientException $ e ) { print $ e -> getMessage ( ) ; $ response = $ e -> getResponse ( ) ; } return $ response ; }
Makes a request to the API.

@param string $verb
@param string $path
@param array  $query
@param array  $options
@return ResponseInterface
Makes a request to the API .