The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::Google::DocumentsList - Perl interface to Google Documents List Data API

SYNOPSIS

use Net::Google::DocumentsList;

my $client = Net::Google::DocumentsList->new(
  username => 'myname@gmail.com',
  password => 'p4$$w0rd'
);

DESCRIPTION

Net::Google::DocumentsList is a Perl interface to Google Documents List Data API.

METHODS

new

creates Google Documents List Data API client.

my $clinet = Net::Google::DocumentsList->new(
  username => 'foo.bar@gmail.com',
  password => 'p4ssw0rd',
  source   => 'MyClient', 
      # optional, default is 'Net::Google::DocumentsList'
  account_type => 'GOOGLE',
      # optional, default is 'HOSTED_OR_GOOGLE'
);

You can set alternative authorization module like this:

my $oauth = Net::Google::DataAPI::Auth::OAuth->new(...);
my $client = Net::Google::DocumentsList->new(
  auth => $oauth,
);

Make sure Documents List Data API would need those scopes:

  • http://docs.google.com/feeds/

  • http://spreadsheets.google.com/feeds/

  • http://docs.googleusercontent.com/

add_item, items, item, add_folder, folders, folder

These methods are implemented in Net::Google::DocumentsList::Role::HasItems.

AUTHOR

Noubo Danjou <nobuo.danjou@gmail.com>

SEE ALSO

XML::Atom

Net::Google::AuthSub

Net::Google::DataAPI

Net::Google::DocumentsList::Role::HasItems

http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html

LICENSE

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