auth_from_secret {ottrpal} | R Documentation |
Use secrets to authorize R package to access Google Slides API
Description
This is a function to authorize the R package to access the Google Slides API. If no client.id and client.secret is provided, the package would provide predefined values.
Usage
auth_from_secret(access_token = NULL, refresh_token = NULL)
Arguments
access_token |
Access token can be obtained from running authorize() interactively: token <-authorize(); token$credentials$access_token |
refresh_token |
Refresh token can be obtained from running authorize() interactively: token <-authorize(); token$credentials$refresh_token |
Value
OAuth token saved to the environment so the package can use the users' Google data
Examples
## Not run:
token <- authorize()
auth_from_secret(
token$credentials$access_token,
token$credentials$refresh_token
)
## End(Not run)
[Package ottrpal version 1.2.1 Index]