createUser

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

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

#Parameters This function has the following parameters:

Arguments Description

options

Request data. Should contain at least username and password fields.

dbId

Database 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));
});