collect_activity: Collect fitbit activity data

Description Usage Arguments Value

View source: R/collect_activity.R

Description

Collects all of the "activity" data from the FitBit API.

Usage

1
collect_activity(token, start_date = NULL, days_prior_to_start = 30)

Arguments

token

The token you received from 'fitbitr' function oauth_token

start_date

The date that you want to start collecting the data in "YYYY-MM-DD" format. If 'NULL' (default) then it chooses yesterday.

days_prior_to_start

Days before 'start_date' that you want to collect data from. Default is 30 days.

Value

Returns a list of lists for each type of activity.


vcannataro/ECfitbitR documentation built on Jan. 29, 2020, 9:13 p.m.