Description Usage Arguments Examples
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.
1 | parse_list_to_df(list, parse_dates, dictionary)
|
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 |
1 2 3 4 | ## Not run:
parse_list_to_df(peloton_api("api/me")$content)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.