attach_get: Get an attachment.

Description Usage Arguments Value Examples

View source: R/getattach.r

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)

sofa documentation built on May 29, 2017, 3:55 p.m.

Search within the sofa package
Search all R packages, documentation and source code