Merge pull request #191 from ErikBjare/master

Added currently playing endpoint
This commit is contained in:
Paul Lamere 2017-09-17 11:32:29 -04:00 committed by GitHub
commit 8297e138ca
1 changed files with 5 additions and 0 deletions

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