guilhermesad / rspotify

A ruby wrapper for the Spotify Web API
MIT License
717 stars 290 forks source link

Add after and before parameters to recently_played #190

Open Shpigford opened 5 years ago

Shpigford commented 5 years ago

The Spotify "Recently Played" endpoint allows for passing after and before parameters to effectively paginate through recently played tracks.

As far as I can tell, the recently_played method only allows for the limit parameter.

https://github.com/guilhermesad/rspotify/blob/master/lib/rspotify/user.rb#L139

Here's developer docs on that: https://developer.spotify.com/documentation/web-api/reference/player/get-recently-played/