Description Usage Arguments Value Examples
View source: R/get_daily_data.R
Get daily data from fitbit using cookie returned from login function
1 | get_daily_data(cookie, what = "steps", start_date, end_date)
|
cookie |
Cookie returned after login, specifically the "u" cookie |
what |
What data you wish to be returned. Options include "steps", "distance", "floors", "minutesVery", "caloriesBurnedVsIntake", "minutesSedentary", "getTimeInHeartRateZonesPerDay", "getRestingHeartRateData" |
start_date |
Date in YYYY-MM-DD format |
end_date |
Date in YYYY-MM-DD format |
A dataframe with two columns:
time |
A POSIXct time value |
data |
The data column corresponding to the choice of "what" |
1 2 3 4 5 | ## Not run:
get_daily_data(cookie, what="steps", start_date="2015-01-13", end_date="2015-01-20")
## End(Not run)
get_daily_data
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.