Answer the question
In order to leave comments, you need to log in
Spotify - getting current track without constant API requests?
Hello, I'm trying to learn GO and in general to strengthen my knowledge of programming, I want to make it possible to get the current playing track from Spotify. They do it upon request.
https://api.spotify.com/v1/me/player/currently-playing
Answer the question
In order to leave comments, you need to log in
Spotify does not support streaming data, i.e. You can't get a track change event using the API.
Therefore, if you use the API, you have no choice but to poll the currently-playing resource with some frequency allowed for Sprotify.
Snip works with the application and reads data from it, this is not working with the API, and programming is on a completely different level.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question