API help
Hi,
I'm newt the api's. I'd like to get some information from our Bose. but I don't know how to get started with the api.
this is what I want to do:
https://bosedevs.bose.com/discussion/433/power-control
do I use http or basic devices, how do I put the get command in the api (command, string,....?)
thanks in advance,
Dave


Hi,
According to documentation of the SoundTouch API, you can control your BOSE products using third party software, like bOS.
For that, you need to use HTTP devices, to mimic the commands you need to send to the SoundTouch products.
"All data for the SoundTouch Control API is formatted as XML. When sending a GET or POST request you must format the data in the correct XML structure, rather than using key-value pairs. Similarly, all responses will be returned in an XML format that you must parse. Properties will be attributes, elements, or content.".
Volume POST example:
<?xml version="1.0" ?>
<volume>$INT</volume>
You can do a quick test, for let's say change volume:
- Find one of your SoundTouch products, and find out its LAN IP address
- Create a HTTP device on bOS
- Set Enable to True
- On Host URL, insert the SoundTouch IP address
- Right mouse click on the HTTP device and add a Command
- On the Command, insert /volume
- Choose POST as method type
- On Post Data, insert:
<?xml version="1.0" ?>
<volume>50</volume>
- Use the HTTP device on visualization to send that command
And see if it works. I don't own any SoundTouch product, so I can't test it out. I just read some quick info on the BOSE Developer portal.
Best regards