Closed chrisvdg closed 4 years ago
Only see something implemented for search results, will try to find some time to come up with something for returned pages of other types and make a pr.
@chrisvdg, any progress with this? It's definitely implementable https://developer.spotify.com/documentation/web-api/reference/playlists/get-playlists-tracks/#paging-object.
@robstarbuck, no, I don't have much spare time and I'm not at all a fast developer.
It's already been implemented for SearchResult
(https://github.com/zmb3/spotify/blob/035b08df67f491832490996ca695229413877afe/search.go#L163)
So I'm going to see if I can just copy that for other types returning pages, or if I can find a neater solution for this.
@robstarbuck, you can follow the progress here: https://github.com/zmb3/spotify/pull/79
I added a more convenient way to move through the pages. You can check out the example here: https://github.com/zmb3/spotify/blob/master/examples/paging/page.go
Currently trying to list the tracks on my playlist but I can't seem to get more than 100 which is the maximum items per page returned by spotify, now how do I fetch the next page of tracks?
I think this could be added to the search example or add a new example that lists all tracks (I can make a pr for that if I can get it working).
My current code