gargle2.0_token | R Documentation |
Constructor function for objects of class Gargle2.0.
gargle2.0_token(
email = gargle_oauth_email(),
client = gargle_client(),
package = "gargle",
scope = NULL,
use_oob = gargle_oob_default(),
credentials = NULL,
cache = if (is.null(credentials)) gargle_oauth_cache() else FALSE,
...,
app = deprecated()
)
email |
Optional. If specified,
Defaults to the option named |
client |
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 use out-of-band authentication (or, perhaps, a
variant implemented by gargle and known as "pseudo-OOB") when first
acquiring the token. Defaults to the value returned by
If the OAuth client is provided implicitly by a wrapper package, its type
probably 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. |
app |
An object of class Gargle2.0, either new or loaded from the cache.
## Not run:
gargle2.0_token()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.