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 20:08] – [Trigger 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 2348: | Line 2348: | ||
| '' | '' | ||
| - | ** enable ** | + | ** enable ** '' |
| <code json> | <code json> | ||
| { | { | ||
| Line 2393: | Line 2393: | ||
| These are the available trigger commands. The '' | These are the available trigger commands. The '' | ||
| - | ** execute ** '' | + | ** execute ** '' |
| <code json> | <code json> | ||
| Line 2405: | Line 2405: | ||
| '' | '' | ||
| - | ** enable ** | + | ** enable ** '' |
| <code json> | <code json> | ||
| { | { | ||