R/get_authorization.R

Defines functions get_authorization

Documented in get_authorization

#' Get Authorziation
#'
#' A function to get authorization taken from Colin Gillespie's rtypeform
#' package
#'
#' @param api An authentication key
#' @export
get_authorization = function(api) {
  api = getrecipes::get_api(api)
  httr::add_headers(authorization = glue::glue("bearer {api}"))
}
JohnMcIntyreJR/getrecipes documentation built on June 15, 2020, 4:09 p.m.