public function request(string $verb, string $path, array $query = [], array $options = [])
    {
        $options['query'] = $query;

        if (!empty($options['query']['filter']) && is_array($options['query']['filter'])) {
            // Default to an AND filter.
            $options['query']['filter'] = implode(',', $options['query']['filter']);
        }
        $response = $this->makeRequest($verb, $path, $query, $options);

        return $this->processResponse($response);
    }
public function request(string $verb, string $path, array $query = [], array $options = [])
    {
        $options['query'] = $query;

        if (!empty($options['query']['filter']) && is_array($options['query']['filter'])) {
            // Default to an AND filter.
            $options['query']['filter'] = implode(',', $options['query']['filter']);
        }
        $response = $this->makeRequest($verb, $path, $query, $options);

        return $this->processResponse($response);
    }
public function request ( string $ verb , string $ path , array $ query = [ ] , array $ options = [ ] ) { $ options [ 'query' ] = $ query ; if ( ! empty ( $ options [ 'query' ] [ 'filter' ] ) && is_array ( $ options [ 'query' ] [ 'filter' ] ) ) { // Default to an AND filter. $ options [ 'query' ] [ 'filter' ] = implode ( ',' , $ options [ 'query' ] [ 'filter' ] ) ; } $ response = $ this -> makeRequest ( $ verb , $ path , $ query , $ options ) ; return $ this -> processResponse ( $ response ) ; }
Takes parameters passed in, makes a request to the API, and processes the response.

@param string $verb
@param string $path
@param array  $query
@param array  $options

@return object|array|StreamInterface
Takes parameters passed in makes a request to the API and processes the response .