login_api module#

class edgeimpulse_api.api.login_api.LoginApi(api_client=None)[source]#

Bases: object

login(
get_jwt_request: GetJWTRequest,
**kwargs,
) GetJWTResponse[source]#

Get JWT token

Get a JWT token to authenticate with the API.

Parameters:
  • get_jwt_request (GetJWTRequest) – (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

GetJWTResponse