All Commands
All Other
Commands
API_CALL
Used after an API has been set up.
For example,
{API_SETUP(API, https://api.example.com, {"username": "USER", "password": "SECRET"}, POST, JSON)}
{API_CALL(API, RESULT, , , {"query": "get_items"})}
Number | Name | Default | Type | Description |
---|---|---|---|---|
1 | api_alias | API | String | The API alias to use. |
2 | result_alias | RESULT | String | The alias to give the result. |
3 | path | String | Path to append to the URL set in {API_SETUP} | |
4 | method | String | Override the method set in {API_SETUP} here. Accepts GET, POST or can be blank to use the default. | |
5 | * | String | The name of a UDB Array or a JSON object containing extra parameters to send with the request. |