| ! | Debug menu |
|
We recommend you enable the Debug menu first. This is useful to make it easier to identify the UUIDs of objects you want to interact with. You can enable the debug menu in the aixtream web GUI under SETTINGS/SYSTEM (scroll down for Debug mode ON/OFF). You have to enable the Expert view to see this option. We also suggest a restart after enabling the Debug menu. In the Debug menu (wrench icon) you can find all Objects and Methods which you can reference with the HTTP(S) commands. |
This example explains how you can add a metadata ingest to an online radio PIPE. This can be easily applied to other management processes. There are no limits to the number of systems you can interface with via the API.
First you need to adjust the session.json: Set username and password. Then add "./login.sh [here-hostname]" to login. Then you can use "./readall_stream.sh" to see all streams/PIPEs.
While logged in, you can see all PIPEs with these calls:
(replace "abcdef12" with your device ID)
In both cases the "content type" is "application/json".
For the status these two fields are of interest
curl --header "Content-Type: application/json" \
--request PATCH \
--cookie session.jar \
--cookie-jar session.jar \
--data '[{"op":"replace","path":"/pendingState","value":"playing"}]' \
http://$HOST/webapi/http/objects/stream/$1