R/create_search_url.R

Defines functions create_search_url

Documented in create_search_url

#' Create a URL to search the Encyclopedia of Life
#' @inheritParams default_params_doc
#' @export
create_search_url <- function(
  species_name,
  use_exact_name = TRUE
) {
  paste0(
    "https://eol.org/api/search/1.0.xml",
    "?q=", to_url_friendly_format(species_name),
    "&exact=", use_exact_name,
    "&page=1"
  )
}
richelbilderbeek/aureole documentation built on March 4, 2020, 10:47 p.m.