gargle2.0_token {gargle} | R Documentation |
Constructor function for objects of class Gargle2.0.
gargle2.0_token( email = gargle_oauth_email(), app = gargle_client(), package = "gargle", scope = 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 |
A Google OAuth client, preferably constructed via
|
package |
Name of the package requesting a token. Used in messages. |
scope |
A character vector of scopes to request. |
use_oob |
Whether to prefer out-of-band authentication. Defaults to the
value returned by |
credentials |
Advanced use only: allows you to completely customise token generation. |
cache |
Specifies the OAuth token cache. Defaults to the option named
|
... |
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)