Description Usage Arguments Details
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.
1 2 | get_sleep_time_series(token, resource_path, date = "", period = "",
base_date = "", end_date = "")
|
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. |
Resource Path Options in more detail.
startTime
timeInBed
minutesAsleep
awakeningsCount
minutesAwake
minutesToFallAsleep
minutesAfterWakeup
efficiency
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.