R/set.camdata.token.R

#' set.camdata.token
#'
#' Set the personal key token env variable to access NOLA police bodycam DB API.
#' Unless previously loaded onto env, this function should be used prior to using getcamdata.
#' Otherwise, some restrictions may apply to queries.#'
#' @param token The token user received after registering at the API's website: https://dev.socrata.com/foundry/data.nola.gov/cntr-x7sf.
#' @examples
#' set.camdata.token("xxxxxxxx")
#' @export

set.camdata.token <- function(token) {
  Sys.setenv(NOLA_APP_TOKEN2 = token)
}
danieltadmon/nolacamr documentation built on May 28, 2019, 11:04 p.m.