createUser

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

Creates user in Appery.io Database. Returns a Promise.

Parameters

This function has the following parameters:

ArgumentsDescription
optionsRequest data. Should contain at least username and password fields.
dbIdDatabase id. Optional if default database id is set.
Example

Creating user in Appery.io Database.

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