# NOT RUN {
## Drive scope, built-in gargle demo app
scopes <- "https://www.googleapis.com/auth/drive"
credentials_user_oauth2(scopes, app = gargle_app())
## bring your own app
app <- httr::oauth_app(
appname = "my_awesome_app",
key = "keykeykeykeykeykey",
secret = "secretsecretsecret"
)
credentials_user_oauth2(scopes, app)
# }
Run the code above in your browser using DataCamp Workspace