Skip to main content

Hi, I followed the blog on sonos to try to authenticate using OAuth2
https://developer.sonos.com/blog/page/2/

But after setting everything I get a invalid request

Can somebody tell me if there is been an update? I used the https://localhost but im not sure if it works as redirect URL. I used 2 accounts one for request the Token and the other one on which I created the integration app that gives me the client and secret. 
Any help super appreciated, thank you

StackOverflow is the correct place to ask with the [sonos] tag. A few others have had trouble getting their oauth code to work. I didn’t have too much trouble myself, and I had never done oauth before.

Note that details of the api has changed slightly since the blog post - check the actual docs, not the blog.


StackOverflow is the correct place to ask with the [sonos] tag. A few others have had trouble getting their oauth code to work. I didn’t have too much trouble myself, and I had never done oauth before.

Note that details of the api has changed slightly since the blog post - check the actual docs, not the blog.

OK, but do I need an https callback page or the local host is enough to do the job? 


StackOverflow is the correct place to ask with the [sonos] tag. A few others have had trouble getting their oauth code to work. I didn’t have too much trouble myself, and I had never done oauth before.

Note that details of the api has changed slightly since the blog post - check the actual docs, not the blog.

OK, but do I need an https callback page or the local host is enough to do the job? 


You don’t need a real https callback, no, I use a custom scheme on iOS for example. Later on you DO need a real https callback if you want to use cloud events.


StackOverflow is the correct place to ask with the [sonos] tag. A few others have had trouble getting their oauth code to work. I didn’t have too much trouble myself, and I had never done oauth before.

Note that details of the api has changed slightly since the blog post - check the actual docs, not the blog.

OK, but do I need an https callback page or the local host is enough to do the job? 


You don’t need a real https callback, no, I use a custom scheme on iOS for example. Later on you DO need a real https callback if you want to use cloud events.

ok, in the end I build an https callback because I was not able without it. Now will you help me with the API? I made the request GET /control/api/v1/households and it returns an empty JSON. WHat does it means? In the S1 App I link my ZP100 device and create a room.
Also using upnp I was able to get the householdID and I made a call for GET groups and it returns a 410 Gone error. May you help me? Thank you


Please look at SO and move the thread here. This forum is not good for coding samples especially. On there you will need to post a lot more data than the GET.