Execute this server code entry.
If argument is an empty object or not type of Object, callbacks.failure or reject callback of promise will be called.
example
// Instantiate with the endpoint. letentry = Kii.serverCodeEntry("main");
// Set the custom parameters. letarg = {"username":"name_of_my_friend", "password":"password_for_my_friend"};
// Example of executing the Server Code entry.execute(arg).then(params=> { letentry = params[0]; letargument = params[1]; letexecResult = params[2]; // do something }).catch(error=> { // do something with the error response });
Parameters
argument: any
pass to the entry of script in the cloud.
If null is specified, no argument pass to the script.
Execute this server code entry.
If argument is an empty object or not type of Object, callbacks.failure or reject callback of promise will be called.