Session

class moco_wrapper.models.Session(moco)

Class for handling authentication against the moco api with a users email address and password

This model is internally when the moco instance is created with no api key in the authentication object and will be invoked before the first request is fired.

authenticate(email: str, password: str)

Authenticates the client with email and password

Parameters:
  • email (str) – Email address
  • password (str) – Password
Returns:

Authentication information