Trigger.io

Trigger.io Forge Documentation

Important

This documentation is deprecated, and only kept here to support users of browser extension APIs. If you are using Trigger.io for iOS or Android, see https://trigger.io/docs/.

tools: Miscellaneous tools

Config

The tools module must be enabled in config.json

{
    "modules": {
        "tools": true
    }
}

API

UUID

Platforms: All

A UUID is a globally unique token; when represented as a string, they look something like 18ADF182-7B12-4FA1-AF0B-6032108C0AE8. Forge already uses UUIDs internally to ensure your extension doesn't conflict with others; this method returns a new UUID for you to use as a unique token.

Note

This function is synchronous and returns a value rather than taking a callback.

tools.UUID()
Returns:a string representation of the UUID

getURL

Platforms: All

Resolve this name to a fully-qualified local or remote resource

tools.getURL(name, callback, error)
Arguments:
  • name (string) -- unqualified resource name, e.g. my/resource.html
  • callback (function(url)) -- will be invoked with the URL as its only parameter
  • error (function(content)) -- called with details of any error which may occur