SlyAPI.webapi#
Implementation for following classes:
WebAPI
Functions
Classes
|
Base class for web APIs |
- SlyAPI.webapi.is_dataclass_instance(obj)[source]#
- Parameters:
obj (object) –
- Return type:
TypeIs[DataclassInstance]
- class SlyAPI.webapi.WebAPI(auth, use_form_data=False)[source]#
Bases:
object
Base class for web APIs
- await get_json(path, params=None, json=None, headers=None)[source]#
- await post_json(path, params=None, json=None, headers=None)[source]#
- await put_json(path, params=None, json=None, headers=None)[source]#