From f1a3840e0e888fdf3b3954695f3e2fb35560a056 Mon Sep 17 00:00:00 2001 From: YHKdaKING <72616734+Yhk5306@users.noreply.github.com> Date: Mon, 28 Nov 2022 15:12:51 +0300 Subject: [PATCH] Added get queue --- src/spotify-web-api.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/spotify-web-api.js b/src/spotify-web-api.js index 2a756da8..b9cc1c53 100644 --- a/src/spotify-web-api.js +++ b/src/spotify-web-api.js @@ -183,6 +183,17 @@ SpotifyWebApi.prototype = { .build() .execute(HttpManager.get, callback); }, + + /** + * Get current Queue + */ + + getQueue:function (callback){ + return WebApiRequest.builder(this.getAccessToken()) + .withPath('/v1/me/player/queue') + .build() + .execute(HttpManager.get,callback) + }, /** * Look up an artist.