vendor/plugins/googlecalendar/lib/googlecalendar.rb
#Log into google data, this method needs to be call once before using other methods of the class
#* Email   The user's email address.
#* Passwd  The user's password.
#* source  Identifies your client application. Should take the form companyName-applicationName-versionID
#*Warning* Replace the default value with something like: 
#+companyName-applicationName-versionID+ 

Log into google data, this method needs to be call once before using other methods of the class
Email   The user's email address.
Passwd  The user's password.
source  Identifies your client application. Should take the form companyName-applicationName-versionID
Warning* Replace the default value with something like.
Log into google data this method needs to be call once before using other methods of the class Email The user ' s email address . Passwd The user ' s password . source Identifies your client application . Should take the form companyName - applicationName - versionID Warning * Replace the default value with something like .
def login(email, pwd, source='googlecalendar.rubyforge.org-googlecalendar-default')
    @user_id = email
    response = Net::HTTPS.post_form(URI.parse("https://#{@google_url}/accounts/ClientLogin"),
        { 'Email' => email, 
          'Passwd' => pwd, 
          'source' => source, 
          'accountType' => 'HOSTED_OR_GOOGLE', 
          'service' => 'cl'})
    response.error! unless response.kind_of? Net::HTTPSuccess
    @token = response.body.split(/=/).last
    @headers = {
       'Authorization' => "GoogleLogin auth=#{@token}",
       'Content-Type'  => 'application/atom+xml'
     }
     return @token
  end
def login ( email , pwd , source = 'googlecalendar.rubyforge.org-googlecalendar-default' ) @user_id = email response = Net :: HTTPS . post_form ( URI . parse ( "https://#{@google_url}/accounts/ClientLogin" ) , { 'Email' => email , 'Passwd' => pwd , 'source' => source , 'accountType' => 'HOSTED_OR_GOOGLE' , 'service' => 'cl' } ) response . error! unless response . kind_of? Net :: HTTPSuccess @token = response . body . split ( / = / ) . last @headers = { 'Authorization' => "GoogleLogin auth=#{@token}" , 'Content-Type' => 'application/atom+xml' } return @token end
Log into google data, this method needs to be call once before using other methods of the class
Email   The user's email address.
Log into google data this method needs to be call once before using other methods of the class Email The user ' s email address .
# service   The string cl, which is the service name for Google Calendar.

email
<not_specific>
pwd
<not_specific>
source
<not_specific>