wndr_task: Task API

Description Usage Arguments See Also Examples

Description

Tasks are children of lists.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
wndr_get_task(id = NULL, list_id = NULL, completed = NULL)

wndr_create_task(list_id, title, assignee_id = NULL, completed = FALSE,
  recurrence_type = c("day", "week", "month", "year"),
  recurrence_count = NULL, due_date = NULL, starred = NULL)

wndr_update_task(id, revision, title = NULL, assignee_id = NULL,
  completed = NULL, recurrence_type = c("day", "week", "month", "year"),
  recurrence_count = NULL, due_date = NULL, starred = NULL,
  remove = NULL)

wndr_delete_task(id, revision)

Arguments

id

Task ID

list_id

List ID.

completed

Whether the task is completed or not.

title

Task title.

assignee_id

User ID.

recurrence_type

Type of reccurence. Possible values are: "day", "week", "month", "year".

recurrence_count

Count of reccurence.

due_date

Due date.

starred

Whether the task is starred or not.

revision

Revision.

remove

Array of attributes to delete from the task, e.g. "due_date".

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# get tasks
l <- wndr_get_list()
t <- wndr_get_task(list_id = l$id[1])

# create a task
t <- wndr_create_task(list_id = l$id[2], title = "test")

# create a recurrence task
wndr_create_task(list_id = l$id[2], title = "test",
                 recurrence_type = "week", recurrence_count = 1, due_date = Sys.Date())

# update the task
t <- wndr_update_task(id = t$id, revision = t$revision, completed = TRUE)

# delete the task
wndr_delete_task(id = t$id, revision = t$revision)

## End(Not run)

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