auth_from_secret | R Documentation |
This is a function to authorize the R package to access the Googleclassroom API. If no client.id and client.secret is provided, the package would provide predefined values.
auth_from_secret(access_token, refresh_token)
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 |
OAuth token saved to the environment so the package can use the users' Google data
## Not run:
token <- authorize()
auth_from_secret(
token$credentials$access_token,
token$credentials$refresh_token
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.