mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-06 14:52:50 +00:00
Merge pull request #202 from lorenzofar/master
Added recently played endpoint
This commit is contained in:
commit
cd6475f65c
@ -673,6 +673,14 @@ class Spotify(object):
|
|||||||
return self._get('me/top/tracks', time_range=time_range, limit=limit,
|
return self._get('me/top/tracks', time_range=time_range, limit=limit,
|
||||||
offset=offset)
|
offset=offset)
|
||||||
|
|
||||||
|
def current_user_recently_played(self, limit=50):
|
||||||
|
''' Get the current user's recently played tracks
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
- limit - the number of entities to return
|
||||||
|
'''
|
||||||
|
return self._get('me/player/recently-played', limit=limit)
|
||||||
|
|
||||||
def current_user_saved_albums_add(self, albums=[]):
|
def current_user_saved_albums_add(self, albums=[]):
|
||||||
''' Add one or more albums to the current user's
|
''' Add one or more albums to the current user's
|
||||||
"Your Music" library.
|
"Your Music" library.
|
||||||
|
Loading…
Reference in New Issue
Block a user