wndr_file: File API

Description Usage Arguments Details See Also Examples

Description

A task may contain files.

Usage

1
2
3
4
5
wndr_get_file(id = NULL, task_id = NULL, list_id = NULL)

wndr_create_file(task_id, filepath, local_created_at = NULL)

wndr_delete_file(id, revision)

Arguments

id

File ID

task_id

Task ID

list_id

List ID

filepath

Path to a local file you want to upload.

local_created_at

Date used to sort the files and comments in the right order

revision

Revision

Details

When you use wndr_get_file, you have to specify either one of id, task_id, list_id.

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# get files
l <- wndr_get_list()
wndr_get_file(list_id = l$id[1])

# attach a file to some task
t <- wndr_get_task(list_id = l$id[1])
f <- wndr_create_file(task_id = t$id[1], filepath = "/path/to/file")

# delete the file
wndr_delete_file(id = f$id, revision = f$revision)

## End(Not run)

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