R/getCode.R

getCode <- function(client_id=Sys.getenv('GAR_CLIENT_ID')){
  
  url <- 'https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/analytics&redirect_uri=http://localhost&response_type=code&client_id='
  url <- paste0(url,client_id)
  browseURL(url)
  
}

Try the GAR package in your browser

Any scripts or data that you put into this service are public.

GAR documentation built on May 1, 2019, 11:26 p.m.