retrieve_one {ODataQuery} | R Documentation |
Retrieve single instance.
retrieve_one(url, default = stop("value not found"), ...)
url |
Which url to fetch data from |
default |
The default if nothing was found. If not specified, an error is thrown in this case. |
... |
Arguments passed on to
|
Single value or default if none. If the result consists of multiple records, an error is thrown.
Other retrieve:
odata_function()
,
retrieve_all()
,
retrieve_data()
## Not run:
url <- "https://services.odata.org/V4/TripPinServiceRW/People?$top=1"
retrieve_one(url)
url <- "https://services.odata.org/V4/TripPinServiceRW/People('russellwhyte')"
retrieve_one(url)
## End(Not run)