class documentation

Base class for API wrapper classes that works by storing the API calls in templates.

Method request No summary
Constant PARAMS Undocumented
Property proxy_uri Undocumented
Method _api_request Undocumented
Method _serialize_request_kwargs Undocumented
Class Variable _logger Undocumented
def request(self, request: str, requestargs: Optional[Dict[str, Any]] = None, **kwargs: Union[str, List[Any], Tuple[Any, ...], Dict[str, Any]]) -> requests.Response: (source)
Parameters
request:strName keyword corresponding to the request name in PARAMS mapping.
requestargs:Optional[Dict[str, Any]]Arguments to pass to requests.request.
**kwargs:Union[str, List[Any], Tuple[Any, ...], Dict[str, Any]]Template substitutions. This can be a string, a dict or a list. If it's a dict or a list or tuple, it will be automatically serialized as JSON before getting interpolated with template place holders.
Returns
requests.ResponseUndocumented
def _api_request(self, http_method: str, url: str, data: Optional[Dict[str, Any]] = None, requestargs: Optional[Dict[str, Any]] = None) -> requests.Response: (source)

Undocumented

def _serialize_request_kwargs(self, kwargs: Dict[str, Union[str, List[Any], Tuple[Any, ...], Dict[str, Any]]]) -> Dict[str, str]: (source)

Undocumented