OAuth authentication with username and passwordSource:
oauth_flow_password() to generate an access token, which is
then used to authentication the request with
The token, not the password is automatically cached (either in memory
or on disk); the password is used once to get the token and is then
req_oauth_password( req, client, username, password = NULL, cache_disk = FALSE, scope = NULL, token_params = list() )
Password. You avoid entering the password directly when calling this function as it will be captured by
.Rhistory. Instead, leave it unset and the default behaviour will prompt you for it interactively.
Should the access token be cached on disk? This reduces the number of times that you need to re-authenticate at the cost of storing access credentials on disk. Cached tokens are encrypted and automatically deleted 30 days after creation.
Scopes to be requested from the resource owner.
List containing additional parameters passed to the
A modified HTTP request.