Learn R Programming

fitcoach (version 1.0)

writeToJSON: Write to JSON

Description

Writes API response content to JSON files, in a specific folder

Usage

writeToJSON(content, path, type, activity, start.date)

Arguments

content
JSON content to be written to file
path
Path to folder where files will be created
type
Type of time series. Must be 'day' or 'intraday'
activity
Type of activity. See below for details.
start.date
Start date