Interface IScriptsClient
Contains functionality to execute scripts.
Namespace: StylelabsStylelabs.MSdkClients
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public interface IScriptsClient
Methods
ExecuteActionScriptAsync(string, JToken)
Executes specified action script.
Declaration
RequestResponse
Task<JToken> ExecuteActionScriptAsync(string identifier, JToken arguments = null)
Parameters
Type | Name | Description |
---|---|---|
string | identifier |
The identifier of the script. |
JToken | arguments |
The arguments to pass to the script. |
Returns
Type | Description |
---|---|
Task<>JToken |
The result of the script. If the script didn't set a result, null is returned. |
Exceptions
Type | Condition |
---|---|
NotFoundException |
The script with the specified |
ScriptException |
Something went wrong during the execution of the script. |