Constructor
new ServerCode(endpoint, executorAccessTokenopt, targetAppIDopt, parametersopt)
Create a ServerCode.
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. |
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. |