.doRequest {onc.api} | R Documentation |
Generic request wrapper for making simple web service requests Will return parsed results, even if they are an error description sent by the API Will stop() if the request fails into an error different from 400
Description
Generic request wrapper for making simple web service requests Will return parsed results, even if they are an error description sent by the API Will stop() if the request fails into an error different from 400
Usage
.doRequest(
self,
url = "",
filters = list(),
getInfo = FALSE,
rawResponse = FALSE
)
Arguments
self |
Calling object |
url |
Full URL to make the request, without GET parameters |
filters |
GET parameters |
getInfo |
When TRUE, will return a list with ("response", "duration", "status"), where "duration" is the time the request took and "status" is the HTTP response status |
rawResponse |
When TRUE, the response returned is the unparsed object returned by httr::GET, otherwise a parsed named list is returned |
Value
(list) The parsed response
[Package onc.api version 2.0.1.0 Index]