Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| indigo_2025.1_documentation:api [2026/02/01 19:35] – [Schedule Command Messages] davel17 | indigo_2025.1_documentation:api [2026/03/23 12:52] (current) – [refresh folder server message] davel17 | ||
|---|---|---|---|
| Line 97: | Line 97: | ||
| The WebSocket and HTTP APIs are designed to be familiar to those that have been using the legacy RESTful API. However, anyone with knowledge of Python, JavaScript or similar languages should be able to pick up the structure of the new APIs very quickly. To help those making the transition as well as those learning to use API calls for the first time, we've laid out several examples to show how API calls are made, as well as all the current API hooks available. | The WebSocket and HTTP APIs are designed to be familiar to those that have been using the legacy RESTful API. However, anyone with knowledge of Python, JavaScript or similar languages should be able to pick up the structure of the new APIs very quickly. To help those making the transition as well as those learning to use API calls for the first time, we've laid out several examples to show how API calls are made, as well as all the current API hooks available. | ||
| - | Here's a simple Python script to open the device-feed and print out any messages it receives (you' | + | Here's a simple Python script to open the device-feed and print out any messages it receives (you' |
| === Python Receiver Example === | === Python Receiver Example === | ||
| Line 784: | Line 784: | ||
| </ | </ | ||
| - | As of this release, this is the only way to get the current state of folders (there are not add/ | + | As of this release, this is the only way to get the current state of folders (there are no add/ |
| ==== Log Feed ==== | ==== Log Feed ==== | ||
| Line 2302: | Line 2302: | ||
| ==== Schedule Messaging ==== | ==== Schedule Messaging ==== | ||
| + | |||
| + | === Schedule Objects === | ||
| + | |||
| + | You’ll receive full variable JSON objects which represent an Indigo schedule instance. See the [[object_model_reference|Indigo Object Model]] docs for schedule details. | ||
| <code json>{ | <code json>{ | ||
| - | | + | |
| - | "configured": | + | "absoluteDate": |
| - | "description": | + | "absoluteDateTime": |
| - | "enabled": | + | "absoluteTime": |
| - | "folderId": | + | "autoDelete": |
| - | "globalProps": | + | "configured": |
| - | "com.indigodomo.indigoserver": | + | "dateType": |
| - | "com.indigodomo.webserver": | + | "description": "", |
| - | | + | "enabled": |
| - | "postProcessing": | + | "folderId": |
| - | "webhookId": | + | "globalProps": {}, |
| - | }, | + | " |
| - | "emptyDict": {} | + | " |
| - | | + | " |
| - | " | + | |
| - | " | + | " |
| - | " | + | |
| - | " | + | " |
| - | " | + | " |
| - | " | + | |
| + | " | ||
| } | } | ||
| </ | </ | ||
| Line 2343: | Line 2348: | ||
| '' | '' | ||
| - | ** enable ** | + | ** enable ** '' |
| <code json> | <code json> | ||
| { | { | ||
| Line 2353: | Line 2358: | ||
| </ | </ | ||
| + | |||
| + | ==== Trigger Messaging ==== | ||
| + | |||
| + | === Trigger Objects === | ||
| + | |||
| + | You’ll receive full variable JSON objects which represent an Indigo trigger instance. See the [[object_model_reference|Indigo Object Model]] docs for trigger details. | ||
| + | |||
| + | <code json>{ | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| === Trigger Command Messages === | === Trigger Command Messages === | ||
| Line 2358: | Line 2393: | ||
| These are the available trigger commands. The '' | These are the available trigger commands. The '' | ||
| - | ** execute ** '' | + | ** execute ** '' |
| <code json> | <code json> | ||
| Line 2370: | Line 2405: | ||
| '' | '' | ||
| - | ** enable ** | + | ** enable ** '' |
| <code json> | <code json> | ||
| { | { | ||