fetch_all: Retrieve all results from a paginated endpoint

View source: R/pagination_helpers.R

fetch_allR Documentation

Retrieve all results from a paginated endpoint

Description

Retrieve all results from a paginated endpoint

Usage

fetch_all(fn, ...)

Arguments

fn

The API function to be called.

...

Arguments passed to fn.

Value

A list with the concatenated results of each page of fn.

See Also

Other pagination: fetch_until()

Examples

## Not run: 
columns <- fetch_all(tables_list_columns, id = 123)
column_names <- columns %>% purrr::map_chr("name")

## End(Not run)

civis documentation built on Aug. 30, 2025, 1:08 a.m.