WWW::Google::ClientLogin - Yet Another Google ClientLogin Client Library
use WWW::Google::ClientLogin; my $client = WWW::Google::ClientLogin->new( email => 'example@gmail.com', password => 'password', service => 'ac2dm', ); my $res = $client->authenticate; die $res->status_line if $res->is_error; my $auth_token = $res->auth_token;
WWW::Google::ClientLogin is a Google ClientLogin client.
SEE ALSO http://code.google.com/intl/us/apis/accounts/docs/AuthForInstalledApps.html
Why I wrote this module? I know WWW::Google::Auth::ClientLogin module already exists, but I feel the return value is difficult to use. I want a response object.
Create a WWW::Google::ClientLogin instance.
my $client = WWW::Google::ClientLogin->new( email => example@gmail.com, password => 'password', service => 'ac2dm', );
Supported options are:
Required. User's full email address. It must include the domain (i.e. johndoe@gmail.com).
Required. User's password.
Required. Each service using the Authorization service is assigned a name value. for example, the name associated with Google Calendar is 'cl'.
'cl'
Optional. Type of account to request authorization. default type is HOSTED_OR_GOOGLE.
HOSTED_OR_GOOGLE
Optional. Short string identifying your application, for logging purposes.
Optional. Token representing the specific CAPTCHA challenge.
Optional. String entered by the user as an answer to a CAPTCHA challenge.
Optional.
SEE ALSO http://code.google.com/intl/us/apis/accounts/docs/AuthForInstalledApps.html#Request.
Send authentication request for Google ClientLogin. Returned WWW::Google::ClientLogin::Response object.
my $res = $client->authenticate; die $res->error_code if $res->is_error; my $auth_token = $res->auth_token;
xaicron <xaicron@cpan.org>
Copyright 2011 - xaicron
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
WWW::Google::Auth::ClientLogin
To install WWW::Google::ClientLogin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Google::ClientLogin
CPAN shell
perl -MCPAN -e shell install WWW::Google::ClientLogin
For more information on module installation, please visit the detailed CPAN module installation guide.