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".

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

Examples

# 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])
# }