ServerCode

ServerCode

Represent a Server Code of Kii Cloud

Constructor

new ServerCode(endpoint, executorAccessTokenopt, targetAppIDopt, parametersopt)

Create a ServerCode.
Parameters:
Name Type Attributes Description
endpoint string Endpoint to call on servercode.
executorAccessToken string <optional>
This token will be used to call servercode endpoint. Must be non-empty if provided.
targetAppID string <optional>
If provided, servercode endpoint will be called for this appid. Otherwise same appID of trigger is used.
parameters string <optional>
Parameters to pass to the servercode function.
Properties:
Name Type Description
endpoint string Endpoint to call on servercode.
executorAccessToken string This token will be used to call servercode endpoint. Must be non-empty if provided.
targetAppID string If provided, servercode endpoint will be called for this appid. Otherwise same appID of trigger is used.
parameters Object Parameters to pass to the servercode function.

Methods

(static) fromJson(obj) → {ServerCode}

This method is for internal use only.
Parameters:
Name Type Description
obj JSON object that represented a ServerCode.
Returns:
ServerCode instance
Type
ServerCode

toJson() → {Object}

This method is for internal use only.
Returns:
JSON object that represented this instance.
Type
Object