NAME
Net::Google::DocumentsList::Role::Exportable - implementation of download items
SYNOPSIS
use Net::Google::DocumentsList;
my $client = Net::Google::DocumentsList->new(
username => 'myname@gmail.com',
password => 'p4$$w0rd'
);
# pickup one document
my $d = $client->item;
# download and set to variable
my $content = $d->export(
{
format => 'txt',
}
);
# download to a file
$d->export(
{
format => 'txt',
file => '/path/to/download.txt',
}
);
DESCRIPTION
This module implements download functionality.
METHODS
export
downloads the item. available formats are seen in http://code.google.com/intl/en/apis/documents/docs/3.0/developers_guide_protocol.html#DownloadingDocs.
AUTHOR
Noubo Danjou <danjou@soffritto.org>
SEE ALSO
Net::Google::DocumentsList::Item
Net::Google::DocumentsList::Revision
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.