paginate: Helper to paginate Canvas API GET requests

View source: R/paginate.R

paginateR Documentation

Helper to paginate Canvas API GET requests

Description

Follows 'next' links in the Link header to retrieve all pages. Returns a list of all responses.

Usage

paginate(initial_response, access_token, showProgress = TRUE)

Arguments

initial_response

The initial httr response object from the first GET request.

access_token

The Canvas API access token (string).

showProgress

Logical; whether to print progress as pages are fetched. Default is TRUE.

Value

A list of httr response objects, one for each page.


vvcanvas documentation built on Sept. 9, 2025, 5:39 p.m.