API help

Avatar
  • updated

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

Avatar
Ricardo Pinto

Hi Dave,

I think that most of the features you refer are possible to create, but it needs some time, effort, and specially one/more SoundTouch products to test several scenarios.

I'd be happy to help, unfortunately I don't own any Bose SoundTouch products, so I think you'll have to be our "lab mouse" :-)


PS: Anyone's who's willing to send me any compatible SoundTouch product for testing, I'm in Portugal, contact me :-P


Best regards

Avatar
Dave De Busschere

Hi guys,

I'm able to get response from the Bose when I give a GET command.


example: GET /volume

get this respons from the Bose


<?xml version="1.0" ?>
<volume deviceID="$MACADDR">
<targetvolume>$INT</targetvolume>
<actualvolume>$INT</actualvolume>
<muteenabled>$BOOL</muteenabled>
</volume>

Where actualvolume in this case was 16.

How can I make this particular value visible in the app.

So I can see in the app the actual volume.

Or in other cases: which room is playing, what channel is playing, ....

I don't see what object I must chose to do display this particular value?

Thanks,

Avatar
Ricardo Pinto

Hi,

When you send the Get command, you get a Response Data, and a Response Data Xml to Json on bOS.

Can you copy past your Response Data Xml to Json here?

Best regards

Avatar
Dave De Busschere

I get this response:

{"?xml":{"@version":"1.0","@encoding":"UTF-8"},"volume":{"@deviceID":"C4F312D5994F","targetvolume":"16","actualvolume":"16","muteenabled":"false"}}

Avatar
Dave De Busschere

When I look at the Bose website (special-types) it looks like the response is a flag?

sorry for being a amateur, but when I able to retrieve the responsdata and publish it in bos I'm on a go. 

https://developer.bose.com/special-types