paginate: Make a generic paginated request

View source: R/pagination.R

paginateR Documentation

Make a generic paginated request

Description

The pagination approach taken here involves constructing successive requests from an initial response. This initial response represents the first page in our multipage request.

Usage

paginate(method, ..., result_node = NULL, .start_page = 1, .n_pages = NULL)

Arguments

method

The name of the API method found here.

...

Endpoint parameters to pass to the API endpoint

result_node

The node in the response that contains the data.

.start_page

The page to start pulling from, by default starts from the 1st page

.n_pages

The total number of pages to pull. If no value is provided, all pages are retrieved.

Value

A list of lastfm objects


bkkkk/lastfmr documentation built on Sept. 4, 2022, 7:03 a.m.