Get a list of available services. Services are unique to the endpoint / city
and thus require an attached jurisdiction using
o311_api
.
Examples
# set up a jurisdiction
o311_api("san francisco")
# \donttest{
if (o311_ok()) {
# get a list of all services
services <- o311_services()
# inspect a service code
o311_service(services$service_code[1])
}
#> # A tibble: 1 × 2
#> service_code attributes$variable $code $datatype
#> <chr> <lgl> <chr> <chr>
#> 1 input:Litter Receptacle Maintenance TRUE input.Garba… singleva…
#> # ℹ 4 more variables: attributes$required <lgl>, $order <int>,
#> # $description <chr>, $values <list>
# }