Skip to main content

Classes

ApiClient


STATIC METHODS

get_default

Return new instance of ApiClient. This method returns newly created, based on default constructor, object of ApiClient class or returns a copy of default ApiClient.

set_default

Set default instance of ApiClient. It stores default ApiClient.
METHODS

call_api

Makes the HTTP request (synchronous) and returns deserialized data. To make an async_req request, set the async_req parameter.

close

deserialize

Deserializes response into an object.

files_parameters

Builds form parameters.

parameters_to_tuples

Get parameters as list of tuples, formatting collections.

parameters_to_url_query

Get parameters as list of tuples, formatting collections.

request

Makes the HTTP request using RESTClient.

sanitize_for_serialization

Builds a JSON POST object. If obj is None, return None. If obj is str, int, long, float, bool, return directly. If obj is datetime.datetime, datetime.date convert to string in iso8601 format. If obj is list, sanitize each element in the list. If obj is dict, return the dict. If obj is OpenAPI model, return the properties dict.

select_header_accept

Returns Accept based on an array of accepts provided.

select_header_content_type

Returns Content-Type based on an array of content_types provided.

set_default_header

update_params_for_auth

Updates header and query params based on authentication setting.