get_heart_rate_time_series: Get Heart Rate Time Series

Description Usage Arguments Details

View source: R/heart-rate.R

Description

get_heart_rate_time_series() returns time series data in the specified range If you specify earlier dates in the request, the response will retrieve only data since the user's join date or the first log entry date for the requested collection.

Usage

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

Arguments

token

An OAuth 2.0 token generated by oauth_token()

date

The end date of the period specified in the format "yyyy-MM-dd" or "today" as a string or Date object.

period

The range for which data will be returned. Options are "1d", "7d", "30d", "1w", "1m".

base_date

The range start date in the format "yyyy-MM-dd" or "today" as a string or Date object.

end_date

The end date of the range in the format "yyyy-MM-dd" or "today" as a string or Date object.

simplify

logical; should the result be simplified from a list to a data.frame if possible

Details

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


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