get_sleep_time_series: Get Sleep Time Series

Description Usage Arguments Details

View source: R/sleep.R

Description

Returns time series data in the specified range for a given resource in the format requested. Note: Even if you provide earlier dates in the request, the response retrieves only data since the user's join date or the first log entry date for the requested collection.

Usage

1
2
get_sleep_time_series(token, resource_path, date = "", period = "",
  base_date = "", end_date = "")

Arguments

token

An OAuth 2.0 token

resource_path

The resource path; see the Resource Path Options below for a list of options.

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, 3m, 6m, 1y, or max.

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.

Details

Resource Path Options in more detail.


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