googleAuthR
has a default project setup with APIs activated for several APIs, but it is recommended you use your own Client IDs as the login screen will be big and scary for users with so many APIs to approve.
It is preferred to configure your functions to only use the scopes they need. Scopes you need will be specified in the Google API documentation.
Set scopes via the option googleAuthR.scopes.selected
.
The below example sets scopes for Search Console, Google Analytics and Tag Manager:
options("googleAuthR.scopes.selected" = c("https://www.googleapis.com/auth/webmasters", "https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/tagmanager.readonly"))
googleAuthR
has been loaded:options("googleAuthR.client_id" = "YOUR_CLIENT_ID")
options("googleAuthR.client_secret" = "YOUR_CLIENT_SECRET")
http://127.0.0.1:1221
options("googleAuthR.webapp.client_id" = "YOUR_CLIENT_ID")
options("googleAuthR.webapp.client_secret" = "YOUR_CLIENT_SECRET")
shiny::runApp(port=1221)
options("googleAuthR.scopes.selected" = c("https://www.googleapis.com/auth/urlshortener"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.