Learn R Programming

vvcanvas (version 0.0.8)

paginate: 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)

Value

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

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.