Net::Google::DocumentsList::Revision - revision object for Google Documents List Data API
use Net::Google::DocumentsList; my $client = Net::Google::DocumentsList->new( username => 'myname@gmail.com', password => 'p4$$w0rd' ); # taking one document my $doc = $client->item; # getting revisions my @revisions = $doc->revisions; for my $rev (@revisions) { # checking revision updated time if ( $rev->updated < DateTime->now->subtract(days => 1) ) { # download a revision $rev->export( { file => 'backup.txt', format => 'txt', } ); last; }
This module represents revision object for Google Documents List Data API
downloads the revision.
sets and gets whether if this revision is published or not.
sets and gets whether if new revision will be published automatically or not.
sets and gets whether if this revision will be published to outside of the Google Apps domain.
the published URL for this document. THIS DOES NOT WORK FOR NOW (2010 NOV 28)
Noubo Danjou <danjou@soffritto.org>
XML::Atom
Net::Google::DataAPI
Net::Google::DocumentsList::Role::Exportable
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Google::DocumentsList, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Google::DocumentsList
CPAN shell
perl -MCPAN -e shell install Net::Google::DocumentsList
For more information on module installation, please visit the detailed CPAN module installation guide.