This module provides client request functionality for user actions.

It is available only on Snipe Kit server.

Constructor

Methods

selfCall (c:ClientKit, params:Params):Dynamic

kit/action.self

Tries to run a given action on caller client.

Input:

  • actionID - String. Action string ID.

Output:

  • errorCode - String. Operation error code.
  • actionID - String. Action string ID.
  • Operation result fields returned by the action script.

Error codes:

  • ok - Operation successful.
  • noSuchAction - No such user action defined.
  • selfLocked - Caller client is currently trying another action.
  • scriptException - Action script produced an exception.
  • Error codes returned by the script.