From be759d3f50f12bcdfdd861af138ba02352b04a29 Mon Sep 17 00:00:00 2001 From: Job Doesburg Date: Sat, 29 Oct 2022 14:01:25 +0200 Subject: [PATCH] Implement get-queue endpoint (#854) --- spotipy/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spotipy/client.py b/spotipy/client.py index 9e6ee64..62ca3f1 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -1872,6 +1872,10 @@ class Spotify(object): ) ) + def queue(self): + """ Gets the current user's queue """ + return self._get("me/player/queue") + def add_to_queue(self, uri, device_id=None): """ Adds a song to the end of a user's queue