googleSignIn | R Documentation |
This function doesn't quite work yet. The idea is that we use this to login into a Google account and then we use the resulting connection for future requests. The initial login will cause cookies to be set in the curl connection and so sent in future requests.
googleSignIn(login = getOption("GooglePassword"), password, service = "trends",
curl = getCurlHandle(verbose = FALSE,
cookiefile = "",
followlocation = TRUE),
userAgent = getOption('HTTPUserAgent'),
GALX = getGALX(curl))
login |
the name/login for the Google account. You can set this as an R option
named GooglePassword and it should be a named character string
of the form |
password |
the password for the Google account. This can be left empty if the
login and password are passed via the |
service |
an optional service for which we are logging in |
curl |
a curl handle used for the login request and returned with the updated state. |
userAgent |
the value for the User-Agent field in the HTTP header |
GALX |
the value of the Google GALX cookie. This will almost always be omitted in the call and computed explicitly. |
A curl handle that can be used in subsequent requests to Google.
Duncan Temple Lang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.