Added saved_albums methods on User for (undocumented) me/albums endpoints #70
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.
I noticed that the Spotify API has library endpoints for albums, and so I added support for them. They're basically identical to the
me/tracks
library endpoints, except you know, for albums:me/albums
.One big benefit here is when you save albums to your library via
me/albums
those albums show up in the "Saved Albums Only" filter, which isn't possible when usingme/tracks
.The problem is... the album endpoints are undocumented. I only found them because I was poking around. So I totally understand if this doesn't get merged. Might be against Spotify Terms to use undocumented pieces of their API. Still, figured I'd PR, if only to say hey this exists. And if they ever go public with the album endpoints, we'll be ready...