LimsRefClass_GET: GET a resource, a wrapper around get_uri

Description Arguments Value Examples

Description

GET a resource, a wrapper around get_uri

Arguments

uri

character the uri to get

...

further arguments for httr::GET including query list

depaginate

logical, if TRUE then pool paginated nodes into one

asNode

logical, if TRUE return a class that inherits NodeRefClass

Value

XML::xmlNode - possibly an error node

Examples

1
2
3
4
5
6
7
## Not run: 
    # list the samples in a project - returns an XML::xmlNode
    ss <- lims$GET(lims$uri("samples"), query = list(projectname = 'foobar'), asNode = FALSE)
    # get the samples in a project parsed into as list of NodeRefClassObjects
    SS <- lims$GET(lims$uri("samples"), query = list(projectname = 'foobar'), asNode = TRUE)

## End(Not run)

BigelowLab/genologicsr documentation built on May 5, 2019, 2:42 p.m.