login

Apperyio.User.login(options, [dbId])

Receives Appery.io database token. Returns promise.

Parameters

This function has the following parameters:

Arguments

Description

options

Request parameters. Should contain username and password fields.

dbId

Database id. Optional if default database id is set.

Example

Receiving Appery.io database token.

Apperyio.User.login({"username": "test", "password": "test"}).then(function(result){
   alert("success_" + JSON.stringify(result));
},function(error) {
   alert("error_" + JSON.stringify(error));
});