collect All Items
Fetches subsequent pages starting from an already-retrieved first page and flattens all items into a single list, following Spotify's next URL until it runs out or maxPages is reached.
Return
The API response including status code and parsed Spotify payload; on the first error response, that error is returned as-is instead of the collected items.
Parameters
The already-fetched first page response.
Extracts the next page URL from a page payload.
Extracts the list of items from a page payload.
Fetches the next page for the given PagingOptions.
Maximum number of pages to fetch, including the first page.
Throws
if maxPages is less than 1.
Fetches subsequent pages starting from an already-retrieved first Paging page and flattens all items into a single list, following Spotify's next URL until it runs out or maxPages is reached.
Return
The API response including status code and parsed Spotify payload; on the first error response, that error is returned as-is instead of the collected items.
Parameters
The already-fetched first page response.
Fetches the next page for the given PagingOptions.
Maximum number of pages to fetch, including the first page.
Throws
if maxPages is less than 1.
Fetches the first page and then all subsequent pages, flattening all items into a single list, following Spotify's next URL until it runs out or maxPages is reached.
Return
The API response including status code and parsed Spotify payload; on an error response, that error is returned as-is instead of the collected items.
Parameters
Paging options used to fetch the first page.
Fetches the first page for the given PagingOptions.
Extracts the next page URL from a page payload.
Extracts the list of items from a page payload.
Fetches the next page for the given PagingOptions.
Maximum number of pages to fetch, including the first page.
Throws
if maxPages is less than 1.
Fetches the first Paging page and then all subsequent pages, flattening all items into a single list, following Spotify's next URL until it runs out or maxPages is reached.
Return
The API response including status code and parsed Spotify payload; on an error response, that error is returned as-is instead of the collected items.
Parameters
Paging options used to fetch the first page.
Fetches the first page for the given PagingOptions.
Fetches the next page for the given PagingOptions.
Maximum number of pages to fetch, including the first page.
Throws
if maxPages is less than 1.