oauth2_httr_login | R Documentation |
To perform an automatic acknowledgement and log in for a
local OAuth2.0 app, run by httr, wrap the expression that
obtains the OAuth2.0 token in oauth2_httr_login()
.
oauth2_httr_login(expr)
expr |
Expression that calls |
In interactive sessions, oauth2_httr_login()
overrides the
browser
option, and when httr opens a browser page, it
calls oauth2_login()
in a subprocess.
In non-interactive sessions, httr does not open a browser page,
only messages the user to do it manually. oauth2_httr_login()
listens for these messages, and calls oauth2_login()
in a
subprocess.
The return value of expr
.
See ?vignette("oauth", package = "webfakes")
for a case
study that uses this function.
Other OAuth2.0 functions:
oauth2_login()
,
oauth2_resource_app()
,
oauth2_third_party_app()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.