wsbf / wsbf.net

The WSBF website.
https://wsbf.net/
7 stars 4 forks source link

Add authentication to Spotify API calls #22

Closed bentsherman closed 6 years ago

bentsherman commented 7 years ago

Spotify no longer allows the "public" endpoints (searching artists, albums, tracks, etc.) to be used without authentication. Therefore, we need to use the Client Credentials Flow described here:

https://developer.spotify.com/web-api/authorization-guide/

This flow doesn't require user authorization so it gives us exactly what we need. We have to use the Client ID and secret, which technically isn't supposed to be made public, however, it might not really matter for our purposes.