Updates the alarm entry with a given ID for a given device. It also gets a response in the format requested.
1 2 3 | update_alarm(token, tracker_id, alarm_id, time, weekday, enabled = TRUE,
recurring = FALSE, snooze_length = 3, snooze_count = 9,
label = "", vibe = "DEFAULT")
|
token |
An OAuth 2.0 token generated by oauth_token() |
tracker_id |
The ID of the tracker whose alarms is managed. The tracker-id value is found via the Get Devices endpoint. |
alarm_id |
The ID of the alarm to be updated. The alarm-id value is found in the response of the Get Alarms endpoint. |
time |
Time of day that the alarm vibrates with a UTC timezone offset, e.g. 07:15-08:00 |
weekday |
Comma separated list of days of the week on which the alarm vibrates, e.g. MONDAY,TUESDAY |
enabled |
TRUE or FALSE. If FALSE, alarm does not vibrate until enabled is set to TRUE. |
recurring |
TRUE or FALSE. If FALSE, the alarm is a single event. |
snooze_length |
Minutes between alarms; integer value. |
snooze_count |
Maximum snooze count; integer value. |
label |
Label for the alarm; string value. |
vibe |
Vibe pattern; only one value for now - DEFAULT. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.