Open danwood opened 6 days ago
Hi Dan.
Thanks for bringing this to my attention! As far as I can remember, saveItemsForCurrentUser
and removeItemsForCurrentUser
always passed in a single top-level array of ids in the body. It looks like Spotify has made a breaking change to their API! I will implement your suggested change and release a new version shortly.
Just pushed version 3.0.4, which should fix this issue. Please confirm that it is working on your end and I will close this issue.
Not sure when this changed, but the current (3.0.3) implementation of
saveItemsForCurrentUser
andremoveItemsForCurrentUser
whenidsInBody
is true doesn't work with Spotify API any more. It used to be that we could pass in the array of IDs in the request body, but now it has to be serialized as JSON with the "ids" key. Otherwise you get a 400 error complaining about the missingids
parameter.Quickly hacking at my local files, I found that if we pass in
["ids" : ids]
to thebody:
parameter in these two methods, in theidsInBody
branch, then the operations succeed.