Spotify API Authorisation

Is there anyone here who worked with the Spotify API?
I do have the Chilkat plugin. That should take care of the oAuth part, I think. But for some reason I can’t get it to log in.
I did register my app on the developers section. So, I do have a client ID and client secret

I’ve done it some time ago without any plugin, but I’d have to look it up if you’re interested.

Edit: oh, I was using a browser to login.

1 Like

Very interested :slight_smile:

The whole oAuth thing used to be very confusing to me, every single time I needed it. A plugin just made it a lot simpler to implement.

Yeah, same as for Facebook and Google logins. They all use browser. I usually use a window with an HTML viewer. After the login-response is returned, I can gracefully close that window. This way there are no browser-tabs laying around, collecting dust.

Sounds like what I’m doing. Here’s the URL that goes out, does that help?

https://accounts.spotify.com/authorize/?redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&client_id=XXX&scope=user-read-private%20user-read-playback-state%20user-read-currently-playing%20playlist-modify-private%20playlist-modify-public%20playlist-read-private%20user-follow-modify%20user-library-read%20user-read-recently-played%20user-library-modify%20user-read-private%20user-top-read&response_type=code

1 Like

What response do you get back from OAuth? I have an old example for Gmail/OAuth at https://www.mothsoftware.com/content/xojo/xojo.php . It doesn’t work anymore. But it should show you the flow of the code.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.