kntn_file: 'kintone' File API

Description Usage Arguments See Also Examples

View source: R/kntn_file.R

Description

Get a file from kintone API and parse it with content. If you want to parse it by yourself, specify as = "raw" or as = "text".

Usage

1
kntn_file(fileKey, verbose = FALSE, as = NULL, type = NULL, encoding = NULL)

Arguments

fileKey

File key.

verbose

If TRUE, output logs verbosely.

as

as parameter passed to content.

type

type parameter passed to content.

encoding

encoding parameter passed to content.

See Also

https://developer.kintone.io/hc/en-us/articles/212494468/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
kntn_set_auth()
app <- 10

# get a single record with a file attachment field
d <- kntn_record(app, id = 1)

f <- kntn_file(fileKey = x$Attachment[[1]]$fileKey[1])

## End(Not run)

yutannihilation/kntnr documentation built on July 16, 2020, 9 p.m.