From ef2b9079a228ee1c0378548b00485c1ec2a6ea5f Mon Sep 17 00:00:00 2001 From: YHKdaKING <72616734+Yhk5306@users.noreply.github.com> Date: Mon, 21 Aug 2023 00:53:04 +0300 Subject: [PATCH] Added get queue --- src/spotify-web-api.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/spotify-web-api.js b/src/spotify-web-api.js index 2a756da8..f834699f 100644 --- a/src/spotify-web-api.js +++ b/src/spotify-web-api.js @@ -1651,6 +1651,18 @@ SpotifyWebApi.prototype = { }, }; + + /** + * Get current Queue + */ + + getQueue:function (callback){ + return WebApiRequest.builder(this.getAccessToken()) + .withPath('/v1/me/player/queue') + .build() + .execute(HttpManager.get,callback) + }, + SpotifyWebApi._addMethods = function(methods) { for (var i in methods) { if (methods.hasOwnProperty(i)) {