You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be immensely helpful to have returned to know when to stop looping through saved_tracks calls (which frequently return "Too Many Requests" errors).
Here's an example request that shows the total key.
Good feature request. Until this gem is forked, updated and merged, you can get around the limitation by doing the following:
# turning this on will return the raw response from SpotifyRSpotify.raw_response=trueraw_tracks_json=rspotify_user_instance.saved_trackstracks_hash=JSON.parse(raw_tracks_json)# now you can access pagination infoputstracks_hash["next"]# API url to next page, will be nil when no more pagesputstracks_hash["total"]# total liked tracks
According to the Spotify docs, the Saved Tracks endpoint has a
total
key that will tell you how many items there are to page through.https://developer.spotify.com/documentation/web-api/reference/library/get-users-saved-tracks/
This would be immensely helpful to have returned to know when to stop looping through
saved_tracks
calls (which frequently return "Too Many Requests" errors).Here's an example request that shows the
total
key.The text was updated successfully, but these errors were encountered: