update_sleep_goal: Update Sleep Goal

Description Usage Arguments Examples

View source: R/sleep.R

Description

The Update Sleep Goal endpoint creates or updates a user's sleep goal and get a response in the in the format requested

Usage

1
update_sleep_goal(token, min_duration)

Arguments

token

An OAuth 2.0 token

min_duration

The target sleep duration is in minutes.

Examples

1
2
3
4
5
## Not run: 
#Set a new sleep goal(377)
update_sleep_goal(token, 377)

## End(Not run)

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