get_premium_export: Get official data export from fitbit.com premium

Description Usage Arguments Value Examples

View source: R/get_premium_export.R

Description

Get official data export from fitbit premium using cookie returned from login function. This should be used over individual calls to get_daily_data(), etc. if you subscribe to premium and data export is allowed. I'm not subscribed to premium, but it works for me...

Usage

1
2
get_premium_export(cookie, what = "ACTIVITIES", start_date = "2015-01-13",
  end_date = "2015-01-20")

Arguments

cookie

Cookie returned after login, specifically the "u" cookie

what

What data you wish to be returned. Options include "BODY", "FOODS", "ACTIVITIES", "SLEEP"

start_date

Date in YYYY-MM-DD format

end_date

Date in YYYY-MM-DD format

Value

A list with two things

summary

A list of sleep summary values

df

A data frame containing various sleep values over time

Examples

1
2
3
4
5
## Not run: 
get_premium_export(cookie, what="ACTIVITIES", start_date="2015-01-13", end_date="2015-01-20")

## End(Not run)
get_premium_export

fitbitScraper documentation built on May 2, 2019, 4:20 a.m.