gargle2.0_token {gargle} | R Documentation |
Constructor function for objects of class Gargle2.0.
gargle2.0_token(
email = gargle_oauth_email(),
app = gargle_app(),
package = "gargle",
scope = NULL,
user_params = NULL,
type = NULL,
use_oob = gargle_oob_default(),
credentials = NULL,
cache = if (is.null(credentials)) gargle_oauth_cache() else FALSE,
...
)
email |
Optional. Allows user to target a specific Google identity. If
specified, this is used for token lookup, i.e. to determine if a suitable
token is already available in the cache. If no such token is found, |
app |
An OAuth consumer application, created by |
package |
Name of the package requesting a token. Used in messages. |
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 |
Whether to prefer "out of band" authentication. Defaults to
the option named "gargle_oob_default", retrieved via
|
credentials |
Advanced use only: allows you to completely customise token generation. |
cache |
Specifies the OAuth token cache. Defaults to the option named
"gargle_oauth_cache", retrieved via |
... |
Absorbs arguments intended for use by other credential functions. Not used. |
An object of class Gargle2.0, either new or loaded from the cache.
## Not run:
gargle2.0_token()
## End(Not run)