Using web hooks
The platform supports webhook integration. To use, create a script that performs some task and then configure the trigger to be a webook. When the webhook is called the script will be executed with the payload from the webhook.
GET|POST https://rest.weave.io/hook/<Org ID>/<Script ID>/<CallToken>
POST https://rest.weave.io/hook/secure/<Org ID>/<Script ID> <Headers> Authorization: Basic <Base 64 encoded HookID:CallToken>
Any payload passed to the script is available via
params.get("body"). It will be a string. If the payload is JSON use the utility function
FromJson(str) to convert to a Lua table.