Learn R Programming

kntnr (version 0.4.4)

kntn_file: 'kintone' File API

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

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

Run this code
# 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])
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab