mkt.databases.api_schema.APIKeyRESTAPIClient
- class mkt.databases.api_schema.APIKeyRESTAPIClient[source]
Bases:
RESTAPIClient,ABCBase class for REST API clients with API key support.
- __init__() None
Methods
__eq__(other)Return self==value.
__init__()_stamp_from_response(res)Record query datetime + cache provenance from a requests-cache response.
_stamp_now()Record current UTC datetime; cache provenance unknown.
check_response(res)Check the response status code for errors.
Get API token, if available.
query_api()Set API token for REST API.
Attributes
__dataclass_fields____dataclass_params____match_args__from_cacheWhether the most recent response was served from requests-cache.
query_datetimeUTC datetime the underlying network query was made (cache creation time if served from cache).