aito.client.AitoClient.request

AitoClient.request(method: str, endpoint: str, query: Union[Dict, List] = None) → Dict

make a request to an Aito API endpoint

Parameters
  • method (str) – request method

  • endpoint (str) – an Aito API endpoint

  • query (Union[Dict, List], optional) – an Aito query, defaults to None

Raises

RequestError – an error occurred during the execution of the request

Returns

request JSON content

Return type

Dict