AnyEvent::Digg::Stream - AnyEvent client for the Digg streaming API
use AnyEvent::Digg::Stream; my $client = AnyEvent::Digg::Stream->new( events => [qw( digg submission comment )], on_event => sub { }, on_digg => sub { }, on_submission => sub { }, on_comment => sub { }, );
The AnyEvent::Digg::Stream module is an AnyEvent client for the Digg streaming API.
AnyEvent::Digg::Stream
AnyEvent
$client = AnyEvent::Digg::Stream->new(%args)
Creates a new client. The following named arguments are accepted:
A list of the desired event types to include in the stream. Any of the following are valid: digg, submission, comment. Default is to include all types.
Callback to execute for any event type.
Callback to executute for the related event type.
Callback to execute on error.
Callback to execute on disconnect.
AnyEvent::HTTP
http://developers.digg.com/version2/stream
Please report any bugs or feature requests to http://rt.cpan.org/Public/Bug/Report.html?Queue=AnyEvent-Digg-Stream. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc AnyEvent::Digg::Stream
You can also look for information at:
GitHub Source Repository
http://github.com/gray/anyevent-digg-stream
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/AnyEvent-Digg-Stream
CPAN Ratings
http://cpanratings.perl.org/d/AnyEvent-Digg-Stream
RT: CPAN's request tracker
http://rt.cpan.org/Public/Dist/Display.html?Name=AnyEvent-Digg-Stream
Search CPAN
http://search.cpan.org/dist/AnyEvent-Digg-Stream/
Copyright (C) 2010-2011 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.
gray, <gray at cpan.org>
To install AnyEvent::Digg::Stream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Digg::Stream
CPAN shell
perl -MCPAN -e shell install AnyEvent::Digg::Stream
For more information on module installation, please visit the detailed CPAN module installation guide.