
Net::Google::DataAPI::Auth::ClientLogin::Multiple - keeps and sings auth_params for multiple Google Data API domains

use Net::Google::DataAPI::Auth::ClientLogin::Multiple;
my $auth = Net::Google::DataAPI::Auth::ClientLogin::Multiple->new(
username => 'foo.bar@gmail.com',
password => 'p4ssw0rd',
services => {
'docs.google.com' => 'writely',
'spreadsheets.google.com' => 'wise',
}
);
my $req = HTTP::Request->new(
'GET' => 'https://docs.google.com/feeds/default/private/full'
);
$auth->sign_request($req);
# sets $req Authorization header
$auth->sign_request($req, 'spreadsheets.google.com');
# set authorization header for 'spreadsheets.google.com', not for 'docs.google.com'.

This module keeps and sings auth_params for multiple google Data API domains.

Nobuo Danjou <danjou@soffritto.org>

http://code.google.com/intl/en/apis/accounts/docs/AuthForInstalledApps.html
http://code.google.com/intl/en/apis/gdata/faq.html#clientlogin

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.