protected function doRequest($method, $endpoint, $params, array $headers)
    {
        return $this->getClient()->request($endpoint, $params, $method, $headers);
    }
protected function doRequest($method, $endpoint, $params, array $headers)
    {
        return $this->getClient()->request($endpoint, $params, $method, $headers);
    }
protected function doRequest ( $ method , $ endpoint , $ params , array $ headers ) { return $ this -> getClient ( ) -> request ( $ endpoint , $ params , $ method , $ headers ) ; }
Create HTTP request

@access protected
@param  string           $method   HTTP method
@param  string           $endpoint Api endpoint
@param  string|array     $params   Request parameter(s)
@param  array            $headers  HTTP headers
@return MessageInterface

@throws \RuntimeException
Create HTTP request