WWW::Google::ClientLogin::Response - Response Object
my $res = WWW::Google::ClientLogin::Response->new( is_success => 1, code => 200, message => 'OK', http_response => $http_response_object, params => { ... }, );
WWW::Google::ClientLogin::Response is a WWW::Google::ClientLogin internal class.
Creates a new instance.
$res->is_success ? 1 : 0;
$res->is_error 1 : 0;
Alias of is_error().
is_error()
HTTP Response code.
say $res->code;
HTTP message or ClientLogin error message
say $res->message;
Return value is a string that contains the code() and message().
code()
message()
say $res->status_line; # eq say $res->code, ' ', $res->message;
Original HTTP Response object.
my $http_response = $res->http_response; say $http_response->as_string;
Alias of http_response().
http_response()
Response error code. SEE ALSO http://code.google.com/intl/en/apis/accounts/docs/AuthForInstalledApps.html#Errors
use WWW::Google::ClientLogin::Constants; if ($res->error_code eq BadAuthentication) { ... }
say $res->auth_token;
say $res->sid;
say $res->lsid;
$res->is_captcha_required ? 1 : 0;
my $captcha_token = $res->captcha_token;
my $captcha_url = $res->captcha_url;
Response parameters in HASHREF
say $res->params->{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.
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.