Help Wizard

Step 1

NEXT STEP

Integration with node-sonos

Solved!

Integration with node-sonos

Hello,

 

I'm using this API https://github.com/jishi/node-sonos-http-api

Since the authorization new restrictions, It can't work with spotify interaction since it doesn't handle access tokens & keys so I wanted to implement it myself.

From what I understand, this is the method doing the query https://github.com/jishi/node-sonos-http-api/blob/master/lib/actions/musicSearch.js but can't really figure out how to implement the tokens / Authorization logic/process. (I have already generated the client key and secret)

So help would be welcomed !

I could contribute it to the github then maybe

 

Regards

Reply

Accepted Solutions
Marked as solution

Hey @StarNab,

 

You can ask Spotify API related questions on Stack Overflow by using the Spotify tag.

 

Follow the link below to ask your Spotify API question. Don’t forget to add the Spotify tag, and any other relevant tags as well, before posting.

Any questions or answers that use the Spotify tag can easily be filtered by typing [Spotify] in the search box, or use the following link:

Hope this helps!

MaximSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

3 Replies
Marked as solution

Hey @StarNab,

 

You can ask Spotify API related questions on Stack Overflow by using the Spotify tag.

 

Follow the link below to ask your Spotify API question. Don’t forget to add the Spotify tag, and any other relevant tags as well, before posting.

Any questions or answers that use the Spotify tag can easily be filtered by typing [Spotify] in the search box, or use the following link:

Hope this helps!

MaximSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Thanks again @Maxim. It seems i'm not the only one who is lost with those changes

Ok this was a mess. I went for the credentials flow. For some reason, I couldn't get a bearer token through nodejs javascript. So I did a python script that does the job and stores the token for my nodejs script to use.

Then the nodejs part reads the token and adds it in the headers when querying Spotify. In the end it works...

Suggested posts