googleSignIn          package:RGoogleTrends          R Documentation

_L_o_g_i_n _t_o _G_o_o_g_l_e _a_c_c_o_u_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     googleSignIn(login = getOption("GooglePassword"), password, service = "trends",
                   curl = getCurlHandle(verbose = FALSE,
                                        cookiefile = "",
                                        followlocation = TRUE), 
                   userAgent = getOption('HTTPUserAgent'),
                   GALX = getGALX(curl))

_A_r_g_u_m_e_n_t_s:

   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 'c(login = "password")'. You
          can set this in your .Rprofile so it is available in all
          sessions. Make certain to ensure that file is not readable by
           anybody but you.

password: the password for the Google account. This can be left empty
          if the  login and password are passed via the 'login'
          parameter.

 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.

_V_a_l_u_e:

     A curl handle that can be used in subsequent requests to Google.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang

