get_activity_time_series: Get Activity Time Series

Description Usage Arguments Details

View source: R/activity.R

Description

get_activity_time_series() returns time series data in the specified range for a given resource.

Usage

1
2
get_activity_time_series(token, resource_path, date = "", period = "",
  base_date = "", end_date = "", simplify = TRUE)

Arguments

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

Details

Available resource_path are

See https://dev.fitbit.com/reference/web-api/activity/#get-activity-time-series for more details.


teramonagi/fitbitr documentation built on Jan. 21, 2021, 8:35 p.m.