Repository navigation
Conversation
…s -> .../playlists/<id>/items)
Member
|
Please take a look at this PR, it should already be included there and released as v10 release candidate: #455 |
Author
|
Ah yes, I see the changes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
At some point, Spotify API has moved interactions with playlist items from
/playlists/{playlist_id}/tracksto/playlists/{playlist_id}/items, perhaps because that is more descriptive. It has caused playlist items interactions not to work through this API. This contribution fixes this in the API. I also changed some comments that refer to it, and changed the names of some variables to reflect this change. I also changed everything in tests that refers to this. All tests pass, and I also tested fetching playlist items with a real connection to the Spotify API.Something worth noting is that this doesn't bring back the old functionality fully, because of another change on the Spotify API, that being that a user has to own or be a contributor on the playlist referenced in the requests. This much is said on the updated official docs on the Spotify API, and it does seem to work that way from testing. No "owner or contributor" check has been implemented, and we just get a 403 when not authorized - I am leaving this up to the maintainers, to decide if or how to manage this.
As far as I can tell, the new docs seem to be identical, apart from the path change.
New docs: Get items | Update items | Add items | Remove items
Old docs: Get items | Update items | Add items | Remove items