Description Usage Arguments Details
get_activity_time_series()
returns time series data in the specified range for a given resource.
1 2 | get_activity_time_series(token, resource_path, date = "", period = "",
base_date = "", end_date = "", simplify = TRUE)
|
token |
An OAuth 2.0 token generated by oauth_token() |
resource_path |
The resource path. see details below. |
date |
The end date of the period specified. A Date class object or a string in the format yyyy-MM-dd. |
period |
The range for which data will be returned. Options are "1d", "7d", "30d", "1w", "1m", "3m", "6m", "1y", or "max". |
base_date |
The range start date. A Date class object or a string in the format yyyy-MM-dd or today. |
end_date |
The end date of the range. A Date class object or a string in the format yyyy-MM-dd. |
simplify |
logical; should the result be simplified from a list to a data.frame if possible |
Available resource_path are
calories
caloriesBMR
steps
distance
floors
elevation
minutesSedentary
minutesLightlyActive
minutesFairlyActive
minutesVeryActive
activityCalories
See https://dev.fitbit.com/reference/web-api/activity/#get-activity-time-series for more details.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.