Learn R Programming

civis (version 3.0.0)

fetch_all: Retrieve all results from a paginated endpoint

Description

Retrieve all results from a paginated endpoint

Usage

fetch_all(fn, ...)

Value

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

Arguments

fn

The API function to be called.

...

Arguments passed to fn.

See Also

Other pagination: fetch_until()

Examples

Run this code
if (FALSE) {
columns <- fetch_all(tables_list_columns, id = 123)
column_names <- columns %>% purrr::map_chr("name")
}

Run the code above in your browser using DataLab