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
TypeNameDescription
stringidentifier

The identifier of the script.

JTokenarguments

The arguments to pass to the script.

Returns
TypeDescription
Task<>JToken

The result of the script. If the script didn't set a result, null is returned.

Exceptions
TypeCondition
NotFoundException

The script with the specified identifier could not be found.

ScriptException

Something went wrong during the execution of the script.

Do you have some feedback for us?

If you have suggestions for improving this article,