ArcGIS endpoints make extensive use of form encoded data for the body of http requests. Form requests require that each element has a name and is encoded as a single string—often as json.
Usage
arc_form_params(params = list())
as_form_params(x)
Details
The arc_form_params
class provides validation of form body parameters
ensuring that each element is a scalar string. It uses a named list
internally to store the parameters.
The helper function as_form_params()
converts a named list to form
parameters by automatically JSON-encoding each element using
yyjsonr::write_json_str()
with auto_unbox = TRUE
.
See also
Other geoprocessing:
arc_gp_job
,
arc_job_status()
,
gp_params
Other geoprocessing:
arc_gp_job
,
arc_job_status()
,
gp_params
Examples
arc_form_params(
list(f = "json", outFields = "*", where = "1 = 1")
)
#> <arcgisutils::arc_form_params>
#> @ params:List of 3
#> .. $ f : chr "json"
#> .. $ outFields: chr "*"
#> .. $ where : chr "1 = 1"