[GH-ISSUE #50] Automatically support limit/next searches #30

Closed
opened 2026-02-27 19:25:41 +03:00 by kerem · 3 comments
Owner

Originally created by @andig on GitHub (Jul 17, 2016).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/50

Current api implementation ignores limit/next return values. Large result sets should be automatically handled by the library.

Originally created by @andig on GitHub (Jul 17, 2016). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/50 Current api implementation ignores limit/next return values. Large result sets should be automatically handled by the library.
kerem closed this issue 2026-02-27 19:25:41 +03:00
Author
Owner

@andig commented on GitHub (Jul 17, 2016):

Actually, this may be more of a question: I have not found any way to even retrieve paged results without reimplementing the internal logic. Even calling e.g. getUserPlaylist with options for offset/limit it doesn't work as spotify wants to append a /tracks to the uri.

<!-- gh-comment-id:233201617 --> @andig commented on GitHub (Jul 17, 2016): Actually, this may be more of a question: I have not found any way to even retrieve paged results without reimplementing the internal logic. Even calling e.g. `getUserPlaylist` with options for offset/limit it doesn't work as spotify wants to append a `/tracks` to the uri.
Author
Owner

@jwilsson commented on GitHub (Jul 18, 2016):

Hi,
We aim to keep this library as simple as possible and leaving these sort of things up to the user.

I'm not sure if getUserPlaylist was just an example or not, but there's also getUserPlaylistTracks which handles limit/offset. But if you happen to find a method that should support limit/offset but doesn't have it documented, PRs are always appreciated!

<!-- gh-comment-id:233292130 --> @jwilsson commented on GitHub (Jul 18, 2016): Hi, We aim to keep this library as simple as possible and leaving these sort of things up to the user. I'm not sure if `getUserPlaylist` was just an example or not, but there's also `getUserPlaylistTracks` which handles limit/offset. But if you happen to find a method that should support limit/offset but doesn't have it documented, PRs are always appreciated!
Author
Owner

@andig commented on GitHub (Jul 18, 2016):

I wasn't even aware of getUserPlaylistTracks, thank you!

<!-- gh-comment-id:233296506 --> @andig commented on GitHub (Jul 18, 2016): I wasn't even aware of `getUserPlaylistTracks`, thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#30
No description provided.