Learn R Programming

fitbitScraper (version 0.1.2)

get_daily_data: Get daily data from fitbit.com

Description

Get daily data from fitbit using cookie returned from login function

Usage

get_daily_data(cookie, what = "steps", start_date, end_date)

Arguments

cookie
Cookie returned after login, specifically the "u" cookie
what
What data you wish to be returned. Options include "steps", "distance", "floors", "minutesVery", "caloriesBurnedVsIntake", "getTimeInHeartRateZonesPerDay"
start_date
Date in YYYY-MM-DD format
end_date
Date in YYYY-MM-DD format

Value

  • A dataframe with two columns:
  • timeA POSIXct time value
  • dataThe data column corresponding to the choice of "what"

Examples

Run this code
get_daily_data(cookie, what="steps", start_date="2015-01-13", end_date="2015-01-20")
get_daily_data

Run the code above in your browser using DataLab