R-ArcGIS / arcgisutils

http://r.esri.com/arcgisutils/
Apache License 2.0
15 stars 2 forks source link

add path and query arguments to `arc_base_req()` #40

Closed JosiahParry closed 8 months ago

JosiahParry commented 8 months ago

This PR adds two new arguments to arc_base_req(): path and query this allows you to add query parameters and additional paths while creating the base request.

For example:

arcgisutils::arc_base_req(
  "google.com",
  path = c("a", "b", "c"),
  query = list(f = "json")
)
#> <httr2_request>
#> GET /google.com/a/b/c?f=json
#> Body: empty
#> Options:
#> • useragent: 'arcgisutils v0.2.0.9000'