See demos for use.
init_oauth2.0( endpoint, app, scope = NULL, user_params = NULL, type = NULL, use_oob = getOption("httr_oob_default"), oob_value = NULL, is_interactive = interactive(), use_basic_auth = FALSE, config_init = list(), client_credentials = FALSE, query_authorize_extra = list() ) oauth2.0_authorize_url( endpoint, app, scope, redirect_uri = app$redirect_uri, state = nonce(), query_extra = list() ) oauth2.0_access_token( endpoint, app, code, user_params = NULL, type = NULL, use_basic_auth = FALSE, redirect_uri = app$redirect_uri, client_credentials = FALSE, config = list() )
| endpoint | An OAuth endpoint, created by |
|---|---|
| app | An OAuth consumer application, created by
|
| scope | a character vector of scopes to request. |
| user_params | Named list holding endpoint specific parameters to pass to the server when posting the request for obtaining or refreshing the access token. |
| type | content type used to override incorrect server response |
| use_oob | if FALSE, use a local webserver for the OAuth dance.
Otherwise, provide a URL to the user and prompt for a validation
code. Defaults to the of the |
| oob_value | if provided, specifies the value to use for the redirect_uri
parameter when retrieving an authorization URL. Defaults to "urn:ietf:wg:oauth:2.0:oob".
Requires |
| is_interactive | DEPRECATED |
| use_basic_auth | if |
| config_init | Additional configuration settings sent to
|
| client_credentials | Default to |
| query_authorize_extra | Default to |
| query_extra | See |