powered by
Get an attachment.
attach_get(cushion, dbname, docid, attname = NULL, as = "list", ...)
A Cushion object. Required.
Cushion
(character) Database name. Required.
(character) Document ID. Required.
(character) Attachment name. Optional.
(character) One of list (default) or json
Curl args passed on to HttpClient
HttpClient
JSON as a character string or a list (determined by the as parameter)
as
# NOT RUN { (x <- Cushion$new()) attach_get(x, dbname="sofadb", docid="guysbeer") # }
Run the code above in your browser using DataLab