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:37] – [Action Group Objects] 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 2305: | Line 2305: | ||
| === Schedule Objects === | === Schedule Objects === | ||
| - | You’ll receive full variable JSON objects which represent an Indigo | + | You’ll receive full variable JSON objects which represent an Indigo |
| <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 2347: | Line 2348: | ||
| '' | '' | ||
| - | ** enable ** | + | ** enable ** '' |
| <code json> | <code json> | ||
| { | { | ||
| Line 2357: | 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 2362: | Line 2393: | ||
| These are the available trigger commands. The '' | These are the available trigger commands. The '' | ||
| - | ** execute ** '' | + | ** execute ** '' |
| <code json> | <code json> | ||
| Line 2374: | Line 2405: | ||
| '' | '' | ||
| - | ** enable ** | + | ** enable ** '' |
| <code json> | <code json> | ||
| { | { | ||