api_client module

ApiClient

class edgeimpulse_api.api_client.ApiClient(
		configuration=None,
		header_name=None,
		header_value=None,
		cookie=None,
		pool_threads=1
)

Parameters

  • configuration=None

  • header_name=None

  • header_value=None

  • cookie=None

  • pool_threads=1

Class variables

  • NATIVE_TYPES_MAPPING

  • PRIMITIVE_TYPES

Instance variables

  • pool Create thread pool on first request avoids instantiating unused threadpool for blocking clients.

  • user_agent User agent for this API client

Static methods

get_default

edgeimpulse_api.api_client.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

edgeimpulse_api.api_client.set_default(
		default
)

Set default instance of ApiClient.

It stores default ApiClient.

Parameters

  • default

Methods

call_api

edgeimpulse_api.api_client.call_api(
		self,
		resource_path,
		method,
		path_params=None,
		query_params=None,
		header_params=None,
		body=None,
		post_params=None,
		files=None,
		response_types_map=None,
		auth_settings=None,
		async_req=None,
		collection_formats=None
)

Makes the HTTP request (synchronous) and returns deserialized data.

To make an async_req request, set the async_req parameter.

Parameters