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 $required $order
#> <chr> <lgl> <chr> <chr> <lgl> <int>
#> 1 RPD:General:General TRUE oform.rpd_… singleva… TRUE 1
#> # ℹ 2 more variables: attributes$description <chr>, $values <list>
# }