user

Module Contents

Functions

login(e_mail[, password])

Login to COBRA and return the access token.

logout()

Logout from COBRA.

Attributes

_refresh_token

user._refresh_token
user.login(e_mail, password=None)

Login to COBRA and return the access token.

Parameters:
  • e_mail (str) – The e-mail address of the user.

  • password (Optional[str]) – The password of the user; alternatively, the user will be prompted to enter the password.

Returns:

The access token.

Return type:

str

user.logout()

Logout from COBRA.