wndr_subtask: Subtask API

Description Usage Arguments See Also Examples

Description

Subtasks are children of tasks.

Usage

1
2
3
4
5
6
7
8
wndr_get_subtask(id = NULL, task_id = NULL, list_id = NULL,
  completed = NULL)

wndr_create_subtask(task_id, title, completed = NULL)

wndr_update_subtask(id, revision, title = NULL, completed = NULL)

wndr_delete_subtask(id, revision)

Arguments

id

Subtask ID

task_id

Task ID

list_id

List ID

completed

Whether the subtask is completed or not

title

Subtask title

revision

Revision

See Also

https://developer.wunderlist.com/documentation/endpoints/subtask

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# get subtasks
l <- wndr_get_list()
s <- wndr_get_subtask(list_id = l$id[1])

# create a subtask
t <- wndr_get_task(list_id = l$id[1])
s <- wndr_create_subtask(task_id = t$id[1], title = "test")

# update the subtask
s <- wndr_update_subtask(id = s$id, revision = s$revision, completed = TRUE)

# Delete the subtask
wndr_delete_subtask(id = s$id, revision = s$revision)

## End(Not run)

yutannihilation/wunderlistr documentation built on May 4, 2019, 7:46 p.m.