NAME
WebService::Google::Reader - Perl interface for Google Reader
SYNOPSIS
use WebService::Google::Reader;
my $reader = WebService::Google::Reader->new(
username => $user,
password => $pass,
);
my $feed = $reader->feed( state => 'reading-list', count => 100);
my @entries = $feed->entries;
# Fetch past entries.
while ( $reader->feed( $feed ) ) {
my @entries = $feed->entries;
}
DESCRIPTION
The WebService::Google::Reader
module provides an interface to the Google Reader service through the unofficial (as-yet unpublished) API.
Note, this is an alpha version.
METHODS
- $reader = WebService::Google::Reader->new
-
Creates a new WebService::Google::Reader object. The constructor accepts the following named parameters:
- $retval = $reader->edit
-
Edit subscriptions or labels. Returns true on success, false on failure. Accepts the following named parameters:
- $retval = $reader->subscribe
- $retval = $reader->unsubscribe
- $feed = $reader->feed
-
Returns a subclass of XML::Atom::Feed. Accepts the following named parameters:
- feed or state or label or tag
-
One (and only one) of these fields must be present.
- count
-
The number of entries the feed will contain.
- order or sort
-
The sort order of the entries: desc (default) or asc. When ordering by asc, Google only returns items within 30 days, whereas the default order has no limitation.
- start_time
-
Request entries only newer than this time (represented as a unix timestamp).
- @list = $reader->list
- @list = $reader->feeds
- @list = $reader->subscriptions
- @list = $reader->subs
- @list = $reader->labels
- $feed = $reader->search
- $opml = $reader->opml
- $error = $reader->error
-
Returns the error, if one occurred.
SEE ALSO
http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI
REQUESTS AND BUGS
Please report any bugs or feature requests to http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-Google-Reader. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc WebService::Google::Reader
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=WebService-Google-Reader
Search CPAN
COPYRIGHT AND LICENSE
Copyright (C) 2007 gray <gray at cpan.org>, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
gray, <gray at cpan.org>