emnify.api_manager ================== .. py:module:: emnify.api_manager Attributes ---------- .. autoapisummary:: emnify.api_manager.MAIN_URL emnify.api_manager.MAX_PAGES_IN_PAGINATOR Classes ------- .. autoapisummary:: emnify.api_manager.BaseApiManager emnify.api_manager.Authenticate Module Contents --------------- .. py:data:: MAIN_URL .. py:data:: MAX_PAGES_IN_PAGINATOR :value: 1000 .. py:class:: BaseApiManager Base manager for api calls handling .. py:attribute:: response_handlers .. py:attribute:: request_url_prefix :value: '' .. py:attribute:: request_method_name :value: '' .. py:method:: _build_headers(token='') :staticmethod: .. py:method:: process_exception(response: requests.Response, client, data: dict = None, *args, **kwargs) .. py:method:: return_paginator(response: requests.Response, client, data: dict = None, files=None, path_params: dict = None, query_params: dict = None) -> Generator .. py:method:: build_method_url(url_params) .. py:method:: unauthorised(response: requests.Response, client, data: dict = None, path_params=None, *args, **kwargs) method for 1 cycle retry - re authentication .. py:method:: call_api(client, data: dict = None, files=None, path_params: dict = None, query_params: dict = None) .. py:method:: make_get_request(main_url: str, method_name: str, headers: dict, params: str = None) .. py:method:: make_post_request(main_url: str, method_name: str, headers: dict, params: dict = None, data: dict = None) .. py:method:: make_patch_request(main_url: str, method_name: str, headers: dict, params: dict = None, data: dict = None) .. py:method:: make_delete_request(main_url: str, method_name: str, headers: dict, params: dict = None, data: dict = None) .. py:method:: make_put_request(main_url: str, method_name: str, headers: dict, params: dict = None, data: dict = None) .. py:method:: make_request(client, method_url: str, data=None, files=None, query_params=None) .. py:method:: return_success(*_, **__) -> True :staticmethod: .. py:method:: return_unwrapped(response: requests.Response, *args, **kwargs) -> requests.Response.json :staticmethod: .. py:method:: resource_path(main_url: str, method_name: str) :staticmethod: .. py:class:: Authenticate(*args, **kwargs) Bases: :py:obj:`BaseApiManager` Base manager for api calls handling .. py:attribute:: request_url_prefix .. py:attribute:: request_method_name .. py:attribute:: response_handlers .. py:method:: unauthorised(response: requests.Response, client, data: dict = None, files=None, path_params: list = None, **kwargs) method for 1 cycle retry - re authentication .. py:method:: unexpected_error(response: requests.Response, client, data: dict = None, files=None, path_params: list = None)