Learn R Programming

fitbitScraper (version 0.1.5)

get_activity_data: Get activity data from fitbit.com

Description

Get activity data from fitbit using cookie returned from login function

Usage

get_activity_data(cookie, end_date)

Arguments

cookie
Cookie returned after login, specifically the "u" cookie
end_date
Date in YYYY-MM-DD format

Value

A dataframe with thirteen columns:
id
The fitbit ID of the activity
name
Name for the type of activity
date
Date of the activity
start_time
Start time for the activity
distance
Distance travelled during the activity
duration
Duration in hours:minutes:seconds of the activity
calories
Calories burned during the activity
steps
Steps taken the activity
start_datetime
A POSIXct encoded start time for the activity
end_datetime
A POSIXct encoded end time for the activity

Examples

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

Run the code above in your browser using DataLab