R/v2_create_token.R

Defines functions v2_create_token

Documented in v2_create_token

#' @author: Victor Plesco
#' 
#' 
#' @title v2_create_token
#' @description Creates an OAuth 2.0 Bearer authentication "token".
#' 
#' @param token string. Bearer token associated with a user-created APP (requires a developer account).
#' 
#' @return An object of class racademic.
#' 
#' @export
v2_create_token <- function(token) {
  return(c(`Authorization` = sprintf('Bearer %s', token)));
};
victorplesco/racademic documentation built on Jan. 8, 2022, 11:39 a.m.