Class: User

User

new User(res, container)

Rapresent an user
Parameters:
Name Type Description
res Object user details
container Container the main container
Source:

Methods

login() → {Promise}

Login the current user and retrieve a session apiKey
Source:
Returns:
token A Promise containing the session apiKey
Type
Promise

login() → {Promise}

Login the current user and retrieve a session apiKey
Source:
Returns:
token A Promise containing the session apiKey
Type
Promise

logout() → {Promise}

Logout the current user
Source:
Returns:
response
Type
Promise

logout() → {Promise}

Logout the current user
Source:
Returns:
response
Type
Promise

read()

Fetch the user object
Source:

read()

Fetch the user object
Source:

update()

Save the local modification to the user object
Source:

update()

Save the local modification to the user object
Source:

User

new User(res, container)

Rapresent an user
Parameters:
Name Type Description
res Object user details
container Container the main container
Source:

Methods

login() → {Promise}

Login the current user and retrieve a session apiKey
Source:
Returns:
token A Promise containing the session apiKey
Type
Promise

login() → {Promise}

Login the current user and retrieve a session apiKey
Source:
Returns:
token A Promise containing the session apiKey
Type
Promise

logout() → {Promise}

Logout the current user
Source:
Returns:
response
Type
Promise

logout() → {Promise}

Logout the current user
Source:
Returns:
response
Type
Promise

read()

Fetch the user object
Source:

read()

Fetch the user object
Source:

update()

Save the local modification to the user object
Source:

update()

Save the local modification to the user object
Source: