R/am_auth.r

Defines functions am_auth

Documented in am_auth

#' Get AppMagic API Authentication token
#' @description Get AppMagic API Authentication token <https://api.appmagic.rocks/v1/docs#section/Authentication>
#' @importFrom RCurl base64
#'
#' @param name Account name
#' @param password Account password
#'
#' @export

am_auth <- function(name, password) {
  token <- base64(paste0(name, ":", password))
  paste("Basic", token)
}
muzerow/rappmagic documentation built on July 1, 2024, 7:50 a.m.