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)

tracker-neRds/wearable documentation built on Dec. 16, 2019, 12:49 a.m.