Learn R Programming

sofa (version 0.2.0)

attach_get: Get an attachment.

Description

Get an attachment.

Usage

attach_get(cushion, dbname, docid, attname = NULL, as = "list", ...)

Arguments

cushion
A Cushion object. Required.
dbname
(charcter) Database name. Required.
docid
(charcter) Document ID. Required.
attname
(charcter) Attachment name. Optional.
as
(character) One of list (default) or json
...
Curl args passed on to one of the HTTP verbs (e.g,. GET, POST, PUT, etc.)

Value

JSON as a character string or a list (determined by the as parameter)

Examples

Run this code
## Not run: 
# (x <- Cushion$new())
# 
# attach_get(x, dbname="sofadb", docid="guysbeer")
# ## End(Not run)

Run the code above in your browser using DataLab