Learn R Programming

datamart (version 0.5.2)

google.oauth2: Google OAuth2 initial authentication

Description

This function redirects the user to a consent screen where the user can grant or revoke access for the provided scope.

Usage

google.oauth2(scope, client_id = getOption("datamart.client_id"), client_secret = getOption("datamart.client_secret"), name = "", clss = "GoogleOAuth2", curl = RCurl::getCurlHandle(), verbose = TRUE)

Arguments

scope
either shortname ("blogger") or URL of the scope
client_id
client id. Defaults to getOption("datamart.client_id")
client_secret
client secret. Defaults to getOption("datamart.client_secret")
name
currently ignored
clss
the class to create. Must be derived from GoogleOAuth2
curl
curl.handle object
verbose
prints diagnostic messages on the way

Value

GoogleOAuth2 object

See Also

read.google.oauth2, google.oauth2