From 8b9eafce0e0ae6c84d8befe8d0bee574e4e4882e Mon Sep 17 00:00:00 2001 From: Ruurd Bijlsma Date: Mon, 30 Sep 2024 21:40:53 +0200 Subject: [PATCH 1/2] Fix call to addToMySavedTracks --- src/spotify-web-api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spotify-web-api.js b/src/spotify-web-api.js index c73ad58..a0892ee 100644 --- a/src/spotify-web-api.js +++ b/src/spotify-web-api.js @@ -243,7 +243,9 @@ var SpotifyWebApi = (function () { var requestData = { url: _baseUri + '/me/tracks', type: 'PUT', - postData: trackIds + postData: { + ids: trackIds + } }; return _checkParamsAndPerformRequest(requestData, options, callback); }; From 06c02352ed4da1e1e907c6a2ce334e33f8e22e72 Mon Sep 17 00:00:00 2001 From: Ruurd Bijlsma Date: Mon, 30 Sep 2024 21:53:04 +0200 Subject: [PATCH 2/2] Fix call to removeFromMySavedTracks --- src/spotify-web-api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spotify-web-api.js b/src/spotify-web-api.js index a0892ee..4ae7af1 100644 --- a/src/spotify-web-api.js +++ b/src/spotify-web-api.js @@ -270,7 +270,9 @@ var SpotifyWebApi = (function () { var requestData = { url: _baseUri + '/me/tracks', type: 'DELETE', - postData: trackIds + postData: { + ids: trackIds + } }; return _checkParamsAndPerformRequest(requestData, options, callback); };