The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

  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'.

DESCRIPTION

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

AUTHOR

Nobuo Danjou <danjou@soffritto.org>

SEE ALSO

Net::Google::AuthSub

Net::Google::DataAPI

http://code.google.com/intl/en/apis/accounts/docs/AuthForInstalledApps.html

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

LICENSE

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