Helper function to make API calls. Calls includes the 10 following actions:
Arguments
- action
Operation to execute. See CKAN's API documentation for details.
- ...
whatever is needed
- .encoding
HTTP POST encoding to use - one of
json
,form
, ormultipart
.- verbose
TRUE FALSE to display info on the console about the API call
Value
httr::response
object with the result of the call.
Details
On dataset
"package_create"
"package_update"
"package_patch"
"package_delete"
"package_search"
On resource
"resource_create"
"resource_update"
"resource_patch"
"resource_delete"
"resource_search"
The package works with both the production and UAT instances of RIDL.
To use the UAT version, run Sys.setenv(USE_UAT=1)
before calling any functions
from the package.
To go back to the production instance, call Sys.unsetenv("USE_UAT")
.