Examples of using The server code in English and their translations into Japanese
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Programming
Note that the server code execution itself does not end by executing the callback function.
The server code feature is described in Server Extension in the section of the mobile features.
When the Server Code is successfully deployed, Kii Cloud will return the version assigned to this code as follows.
When the server code execution is finished, you can get the execution result i.e., the returned value and error.
When the parameter is specified, the version specified at the server code registration will be ignored.
If it is omitted, Kii Cloud interprets the server code as being executed by an anonymous user.
Use the getAccessToken method to get the access token specified when the client requests the server code execution.
Note that the success/failure status within the server code doesn't match that on the client.
If there is no logged-in user, Kii Cloud interprets the server code as being executed by an anonymous user.
If you automatically execute your server code(i.e. via server hook), only the API calls made inside the server code are counted.
If there is a logged-in user, Kii Cloud interprets the server code as being executed by this user.
Executes the server code by calling the execute() method with the custom parameters.
Managing server extension: In order to use the server extension, you will have to manage the server code for your application.
A trigger defines the server code information(i.e., the endpoint name and parameters) and associated condition. The server code is executed when the designated condition is met.
If you register server code without the version of the JavaScript engine, the server code will be executed on the default version of the JavaScript engine for Kii Cloud.