jwilsson / spotify-web-api-php

A PHP wrapper for Spotify's Web API.
MIT License
868 stars 156 forks source link

replacePlaylistTracks tests for wrong response status #275

Closed cdarken closed 6 months ago

cdarken commented 6 months ago

Hi. I've been using your library, it works great! But when updating a playlist I noticed the return false when actually I see the playlist updating. The cause is the comparation with 201 of the response status in replacePlaylistTracks in src/SpotifyWebAPI.php when the Spotify api docs specify a 200 response in case of success (https://developer.spotify.com/documentation/web-api/reference/reorder-or-replace-playlists-tracks)

jwilsson commented 6 months ago

Hey! It does indeed! Spotify must have changed that at some point 🤔 I'll get that sorted straight away.

jwilsson commented 6 months ago

6.0.4 fixes it, thanks for the report!