GET /panel/widgets
The macro widgets the menu bar panel shows right now, by section.
Details #
Returns a list of sections, each with a title ("In Safari"), a symbol, an optional badge, and its items. Each item has the macro's id, a label, a kind (button, toggle, readout or slider), the macro's name as source, and the values for its kind (on, text, or value with its range). It is what the panel draws; a macro whose Only if doesn't hold now is not in it.
curl -s -H "Authorization: Bearer $TOKEN" http://127.0.0.1:48080/panel/widgets
Parameters #
curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X GET http://localhost/panel/widgets
The macro widgets the menu bar panel shows right now, by section. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.