184
edits
(→Recipe) |
(→Sending: + example) |
||
| Line 78: | Line 78: | ||
* Send one values to all channels matching any of the selectors: | * Send one values to all channels matching any of the selectors: | ||
PUT http://localhost:3000/api/v1/channels/set {"select": selector(s), "value": value} | |||
or | or | ||
* Send a bunch of values to all channels matching any of the selectors: | * Send a bunch of values to all channels matching any of the selectors: | ||
PUT http://localhost:3000/api/v1/channels/set [{"select": selector(s), "value": value}, {"select": selector(s), "value: value}, ...] | |||
See http://fxbox.github.io/taxonomy/doc/foxbox_taxonomy/values/enum.Value.html for the full documentation on values. | See http://fxbox.github.io/taxonomy/doc/foxbox_taxonomy/values/enum.Value.html for the full documentation on values. | ||
==== Example (with CURL) ==== | |||
The following snippet displays "Hello world" on all the devices that support Log, in particular the console. | |||
curl -X PUT http://localhost:3000/api/v1/channels/set -d '{"select":{"kind":"Log"},"value":{"String":"Hello, world"}}' | |||
=== Tags === | === Tags === | ||
edits