aito.client.requests.aito_request.BaseRequest
- class aito.client.requests.aito_request.BaseRequest(method: str, endpoint: str, query: Dict | List | None = None)
Bases:
AitoRequestBase request to the Aito instance
- Parameters:
method (str) – the method of the request
endpoint (str) – the endpoint of the request
query (Optional[Union[Dict, List]]) – an Aito query if applicable, optional
Methods
make_request(method, endpoint, query)factory method to return the appropriate request class instance after checking the input endpoint and method :param method: the method of the request :type method: str :param endpoint: the endpoint of the request :type endpoint: str :param query: an Aito query if applicable, optional :type query: Optional[Union[Dict, List]] :return: the appropriate request class intsnace :rtype: AitoRequest
- classmethod make_request(method: str, endpoint: str, query: Dict | List | None) AitoRequest
factory method to return the appropriate request class instance after checking the input endpoint and method :param method: the method of the request :type method: str :param endpoint: the endpoint of the request :type endpoint: str :param query: an Aito query if applicable, optional :type query: Optional[Union[Dict, List]] :return: the appropriate request class intsnace :rtype: AitoRequest
- response_cls
the class of the response for this request class
alias of
BaseResponse