parse_list_to_df: Parse the 'JSON' content of a response and turn the result...

Description Usage Arguments Examples

View source: R/parsing.R

Description

A helper, agnostic function to parse the content of API responses made to Peloton's API. Leaves most datatypes alone, but converts nested lists into list-columns.

Usage

1

Arguments

list

The JSON content of a response (aka a named list in R)

parse_dates

Whether to turn epoch timestamps into datetimes

dictionary

A dict

Examples

1
2
3
4
## Not run: 
parse_list_to_df(peloton_api("api/me")$content)

## End(Not run)

bweiher/pelotonR documentation built on Jan. 9, 2021, 1:36 a.m.