AnyEvent::Gmail::Feed - Subscribe to Gmail feed
use AnyEvent; use AnyEvent::Gmail::Feed; AnyEvent::Gmail::Feed->new( username => $user, #required password => $pass, #required label => $label, #optional (eg. 'unread') interval => $interval, #optional (60s by default) on_new_entry => sub { my $entry = shift; #XML::Atom::Entry instance use Data::Dumper; warn Dumper $entry->as_xml; }, ); AnyEvent->condvar->recv;
AnyEvent::Gmail::Feed is an AnyEvent consumer which checks GMail unread messages
Masayoshi Sekimura <sekimura@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AnyEvent::Feed
AnyEvent
AnyEvent::HTTP
XML::Atom::Entry
http://code.google.com/apis/gdata/faq.html#GmailAtomFeed
To install AnyEvent::Gmail::Feed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Gmail::Feed
CPAN shell
perl -MCPAN -e shell install AnyEvent::Gmail::Feed
For more information on module installation, please visit the detailed CPAN module installation guide.