req_oauth | R Documentation |
This is a low-level helper for automatically authenticating a request with an OAuth flow, caching the access token and refreshing it where possible. You should only need to use this function if you're implementing your own OAuth flow.
req_oauth(req, flow, flow_params, cache)
req |
A httr2 request object. |
flow |
An |
flow_params |
Parameters for the flow. This should be a named list
whose names match the argument names of |
cache |
An object that controls how the token is cached. This should be a list containing three functions:
|
An oauth_token.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.