base¶
Base Client¶
-
class
prometeo.base_client.
BaseClient
(api_key, environment)[source]¶ Base client class to make api calls
-
call_api
(method, url, *args, **kwargs)[source]¶ Calls an API endpoint, using the configured api key and environment.
- Parameters
method (str) – The HTTP method to use (
GET
,POST
, etc)url (str) – The url to call (without the environment’s domain)
- Return type
JSON data as a python object.
-