Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit and offset dose not work with getPlaylist #198

Closed
claytja opened this issue Apr 3, 2018 · 1 comment
Closed

limit and offset dose not work with getPlaylist #198

claytja opened this issue Apr 3, 2018 · 1 comment

Comments

@claytja
Copy link

claytja commented Apr 3, 2018

spotifyApi.getPlaylist(parsed.user, parsed.id,{ limit : 100, offset : 100 })
.then(function(data) {

}, function(err) {
return console.log('Something went wrong!', err);
});
will still print the first 100 songs.

@JMPerez
Copy link
Collaborator

JMPerez commented Apr 29, 2018

@claytja The options supported for the get playlist endpoint are fields and market (see documentation page).

If you want to paginate through the tracks you need to use the getPlaylistTracks() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants