added currently playing endpoint

This commit is contained in:
Erik Bjäreholt 2017-05-13 10:35:48 +02:00
parent 7499d8e511
commit 9d47b98eab

View File

@ -573,6 +573,11 @@ class Spotify(object):
'''
return self.me()
def current_user_playing_track(self):
''' Get information about the current users currently playing track.
'''
return self._get('me/player/currently-playing')
def current_user_saved_albums(self, limit=20, offset=0):
''' Gets a list of the albums saved in the current authorized user's
"Your Music" library