R/client.R

Defines functions save_walmart_credentials

Documented in save_walmart_credentials

#' Save API credentials for later use
#'
#' This functions caches the credentials to avoid need for entering it when
#' calling other functions
#' @param app_key application key
#' @examples
#' # since not checking is preformed not to waste API calls
#' # it falls on the user to save correct information
#' save_walmart_credentials("APP_KEY")
#' @export
save_walmart_credentials <- function(app_key) {
  if (app_key != "") {
    assign("KEY", app_key, envir = auth_cache)
  }
}
EmilHvitfeldt/walmartAPI documentation built on April 23, 2020, 8:26 a.m.