func (c *caller) request(method, resource, resourceID string, params *Parameters) (Response, error) {
	// Preparation.
	client, urlStr, err := c.prepareClient(resource, resourceID)
	if err != nil {
		return nil, err
	}
	request, err := c.prepareRequest(method, urlStr, params)
	if err != nil {
		return nil, err
	}
	// Perform request.
	response, err := client.Do(request)
	if err != nil {
		return nil, errors.Annotate(err, ErrHTTPRequestFailed, errorMessages)
	}
	// Analyze response.
	return analyzeResponse(response)
}
// request performs all requests.
request performs all requests.
// request performs all requests .
func (c *caller) request(method, resource, resourceID string, params *Parameters) (Response, error) {
	client, urlStr, err := c.prepareClient(resource, resourceID)
	if err != nil {
		return nil, err
	}
	request, err := c.prepareRequest(method, urlStr, params)
	if err != nil {
		return nil, err
	}
	response, err := client.Do(request)
	if err != nil {
		return nil, errors.Annotate(err, ErrHTTPRequestFailed, errorMessages)
	}
	return analyzeResponse(response)
}
func ( c * caller ) request ( method , resource , resourceID string , params * Parameters ) ( Response , error ) { client , urlStr , err := c . prepareClient ( resource , resourceID ) if err != nil { return nil , err } request , err := c . prepareRequest ( method , urlStr , params ) if err != nil { return nil , err } response , err := client . Do ( request ) if err != nil { return nil , errors . Annotate ( err , ErrHTTPRequestFailed , errorMessages ) } return analyzeResponse ( response ) }
request performs all requests.
request performs all requests .
// Preparation. // Perform request. // Analyze response.