Client

SklikApi. Client

(private) new Client()

Methods

get() → {Object}

Gets attributes of currently logged-in user.

See:
Returns:

Response structure.

Type
Object

login(username, password) → {Object}

User login.

Parameters:
Name Type Description
username string

Username.

password string

Password.

See:
Returns:

Response structure.

Type
Object

logout() → {Object}

User logout.

See:
Returns:

Response structure.

Type
Object

stats(params) → {Object}

Gets statistics for account.

Parameters:
Name Type Description
params Object
See:
Returns:

Response structure.

Type
Object