mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-26 23:45:49 +03:00
[GH-ISSUE #272] Get next page of playlists response #199
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @upgrader-dev on GitHub (Mar 5, 2024).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/272
Hello,
I'm trying to get all the playlists of a user with the method getMyPlaylists() of SpotifyWebAPI class with a limit of 20 for example.
My aim is not to load the entire playlist collection to save Spotify server's usage.
So I plan tu use the 'next' property of the response (which is the uri to request to get the next page results).
I'm a beginner here, but as far as I understand, there is no such method to get the next page of playlists, and I can't use the method sendRequest() of SpotifyWebAPI class because it's protected.
If my understanding is correct maybe i could suggest a new method getNextPlaylistsPage($nextUri).
What do you think about that?
Benjamin
@jwilsson commented on GitHub (Mar 5, 2024):
Hey Benjamin!
In addition to setting the
limityou can also set theoffseton subsequent requests to skip the first X number of items.For example:
Cheers,
Jonathan
@upgrader-dev commented on GitHub (Mar 5, 2024):
Ok thank you