Skip to main content

Script By ID

info

All JSON array responses have been shortened for readability.

GET/<ApplicationID>/scripts/<ScriptID or Name>
Endpoint Requires Authentication
Example
https://api.weightron.cloud/641c1177ebc8b2f3c195b02c/scripts/get_timestamp
Description

Invokes an RPC for the given script. Can be called with any request method.

info

Body, query parameters, headers, and the method will be passed into the script context.

The timeout for a script RPC is configurable, the default value is 5 seconds, configurable up to 60 seconds.

See Custom Endpoints for more information on usage and configuration.

Returns
{
"timestamp": "2023-03-23T08:58:51.232Z",
"data": "2023-03-16T04:58:51.212-04:00"
}