process_response: Process a Canvas API response

View source: R/process_response.R

process_responseR Documentation

Process a Canvas API response

Description

Wrapper function for common tasks in going from Canvas URL to data.frame. Most of the heavy lifting is done in paginate, which finds which pages to download. This function adds necessary arguments to those pages (e.g. the authentication token), downloads the content, converts from JSON into data.frame format, and if there are multiple pages/data.frames, converts it into one final data.frame if able.

Usage

process_response(url, args)

Arguments

url

url to query

args

query arguments to be passed to httr, e.g. auth token

Value

processed dataframe or list if unable to simplify


daranzolin/rcanvas documentation built on May 18, 2024, 2:33 p.m.