| AnyEvent-Gmail-Feed documentation | view source | Contained in the AnyEvent-Gmail-Feed distribution. |
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-Gmail-Feed documentation | view source | Contained in the AnyEvent-Gmail-Feed distribution. |