get_activity_intraday_time_series: Get Activity Intraday Time Series

Description Usage Arguments Details

View source: R/activity.R

Description

get_activity_intraday_time_series() returns intraday time series data in the specified range for a given resource. Access to the Intraday Time Series for personal use (accessing your own data) is available through the "Personal" App Type.

Usage

1
2
3
get_activity_intraday_time_series(token, resource_path, date,
  detail_level = "15min", start_time = NULL, end_time = NULL,
  simplify = TRUE)

Arguments

token

An OAuth 2.0 token generated by oauth_token()

resource_path

The resource path of the desired data

date

A Date class object or a string in the format "yyyy-MM-dd" or "today".

detail_level

Number of data points to include. Either 1min or 15min. Optional.

start_time

The start of the period, in the format HH:mm. Optional.

end_time

The end of the period, in the format HH:mm. Optional.

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-intraday-time-series for more details.


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