protected function request($method, $endpoint, $options = [])
    {
        return $this->unwrapResponse($this->getHttpClient($this->getBaseOptions())->{$method}($endpoint, $options));
    }
protected function request($method, $endpoint, $options = [])
    {
        return $this->unwrapResponse($this->getHttpClient($this->getBaseOptions())->{$method}($endpoint, $options));
    }
protected function request ( $ method , $ endpoint , $ options = [ ] ) { return $ this -> unwrapResponse ( $ this -> getHttpClient ( $ this -> getBaseOptions ( ) ) -> { $ method } ( $ endpoint , $ options ) ) ; }
Make a http request.

@param string $method
@param string $endpoint
@param array $options http://docs.guzzlephp.org/en/latest/request-options.html

@return array
Make a http request .