Get an attachment.

Description

Get an attachment.

Usage

1
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

1
2
3
4
5
6
## Not run: 
(x <- Cushion$new())

attach_get(x, dbname="sofadb", docid="guysbeer")

## End(Not run)