From 9d47b98eabb054b47b0df9d38dfee411ebf72493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Sat, 13 May 2017 10:35:48 +0200 Subject: [PATCH] added currently playing endpoint --- spotipy/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spotipy/client.py b/spotipy/client.py index ad0e082..56fa0d8 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -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