log_sleep: Log Sleep

Description Usage Arguments

View source: R/sleep.R

Description

Creates a log entry for a sleep event and returns a response in the format requested. Keep in mind that it is NOT possible to create overlapping log entries or entries for time periods that DO NOT originate from a tracker. Sleep log entries appear on website's sleep tracker interface according to the date on which the sleep event ends.

Usage

1
log_sleep(token, startTime, duration, date)

Arguments

token

An OAuth 2.0 token

startTime

required Start time; hours and minutes in the format HH:mm.

duration

required Duration in minutes.

date

required Log entry date in the format yyyy-MM-dd.


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