Learn R Programming

fitbitScraper (version 0.1.8)

get_sleep_data: Get sleep data from fitbit.com

Description

Get sleep data from fitbit using cookie returned from login function

Usage

get_sleep_data(cookie, start_date = "2015-01-13", end_date = "2015-01-20")

Arguments

cookie
Cookie returned after login, specifically the "u" cookie
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

Run this code
## Not run: ------------------------------------
# get_sleep_data(cookie, start_date="2015-01-13", end_date="2015-01-20")
## ---------------------------------------------
get_sleep_data

Run the code above in your browser using DataLab