(private) new Client()
Methods
get() → {Object}
Gets attributes of currently logged-in user.
Returns:
Response structure.
- Type
- Object
login(username, password) → {Object}
User login.
Parameters:
Name | Type | Description |
---|---|---|
username |
string | Username. |
password |
string | Password. |
Returns:
Response structure.
- Type
- Object
logout() → {Object}
User logout.
Returns:
Response structure.
- Type
- Object
stats(params) → {Object}
Gets statistics for account.
Parameters:
Name | Type | Description |
---|---|---|
params |
Object |
Returns:
Response structure.
- Type
- Object