GoogleDrive::ApiClient
Constants
Constructors
Initializes the ApiClient @option config [Configuration] Configuration for initializing the object, default to Configuration.default
Instance methods
Build an API request with given options.
@return Crest::Request the data deserialized from response body (could be nil), response status code and response headers.
Build parameter value according to the given collection format. @param [String] collection_format one of csv, ssv, tsv, pipes and multi
Build tuples of parameters according to the given collection format. @param [String] collection_format one of csv, ssv, tsv, pipes and multi
Build form data from form params @param [Array(Tuple(String, Crest::ParamsValue))] form_params
Build HTTP header value for array HTTP header values are always comma separated @param [Array] params
Build multipart form data from form params @param [Array(Tuple(String, Crest::ParamsValue))] form_params
Build url encoded form data from form params @param [Array(Tuple(String, Crest::ParamsValue))] form_params
The Configuration object holding settings to be used in the API client.
Defines the cookies to be used in HTTP requests of all API calls by default.
@return [Hash]
Defines the cookies to be used in HTTP requests of all API calls by default.
@return [Hash]
Defines the headers to be used in HTTP requests of all API calls by default.
@return [Hash]
Defines the headers to be used in HTTP requests of all API calls by default.
@return [Hash]
The encoder class used to encode request body
Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; charset=UTF8 APPLICATION/JSON / @param [String] mime MIME @return [Boolean] True if the MIME is application/json
Return Accept header based on an array of accepts provided. @param [Array] accepts array for Accept @return [String] the Accept header (e.g. application/json)
Return Content-Type header based on an array of content types provided. @param [Array] content_types array for Content-Type @return [String] the Content-Type header (e.g. application/json)
Update header and query params based on authentication settings.
@param [Hash] header_params Header parameters @param [Hash] query_params Query parameters @param [String] auth_names Authentication scheme name