Nothing
#' Get service list
#' @description
#' Get a list of available services. Services are unique to the endpoint / city
#' and thus require an attached jurisdiction using
#' \code{\link{o311_api}}.
#'
#' @param ... Further endpoint-specific parameters as documented in the
#' respective endpoint reference.
#'
#' @return A dataframe or list containing information about each service.
#'
#' @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])
#' }
#' }
#' @export
o311_services <- function(...) {
o311_query(path = "services", ..., simplify = TRUE)
}
#' @param service_code Identifier of a single service definition. Service
#' codes can usually be retrieved from \code{o311_services}.
#' @rdname o311_services
#' @export
o311_service <- function(service_code, ...) {
assert_string(service_code)
path <- sprintf("services/%s", service_code)
o311_query(path = path, ..., simplify = TRUE)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.