spotify-api / spotify-api.js

A complete wrapper for spotify web api for deno, node.js and the browser.
https://spotify-api.js.org
MIT License
211 stars 19 forks source link

Add a parameter to getPlaylists to fetch all playlists at once #168

Closed Arakmar closed 1 year ago

Arakmar commented 2 years ago

Changes

Add a parameter to getPlaylists to fetch all playlists at once. This logic is maybe a little out of scope of this library but it's impossible for a program calling getPlaylists to know the playlist count of an user. The data returned from getPlaylists is only an array of playlists. The response from the API containing the total, the url, etc (https://developer.spotify.com/documentation/web-api/reference/#/operations/get-list-users-playlists) is not exposed directly to the user.

I didn't add a type because PlaylistList is internal only.

Status

scientific-dev commented 1 year ago

About the PlaylistList type, it is a paging object so, you can represent that type as Paging<Playlist>.

scientific-dev commented 1 year ago

The changes have been update in v9.2.5. If you encounter any bugs, open a new issue to resolve it.

Thanks for your support 👍 !