opal.get {opalr} | R Documentation |
Generic REST resource getter.
Description
Generic REST resource getter.
Usage
opal.get(
opal,
...,
query = list(),
acceptType = "application/json",
outFile = NULL,
callback = NULL
)
Arguments
opal |
Opal object. |
... |
Resource path segments. |
query |
Named list of query parameters. |
acceptType |
The type of the body content. Default is 'application/json', i.e. a serialized R object or an error message. |
outFile |
Write response body to file. Ignored if NULL (default). |
callback |
A callback function to handle the response object. |
See Also
Other REST functions:
opal.delete()
,
opal.post()
,
opal.put()
Examples
## Not run:
o <- opal.login('administrator','password', url = 'https://opal-demo.obiba.org')
opal.get(o, 'project', 'CNSIM')
opal.logout(o)
## End(Not run)
[Package opalr version 3.4.1 Index]