The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AnyEvent::Digg::Stream - AnyEvent client for the Digg streaming API

SYNOPSIS

    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 { },
    );

DESCRIPTION

The AnyEvent::Digg::Stream module is an AnyEvent client for the Digg streaming API.

METHODS

new

    $client = AnyEvent::Digg::Stream->new(%args)

Creates a new client. The following named arguments are accepted:

events

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.

on_event

Callback to execute for any event type.

on_digg
on_submission
on_comment

Callback to executute for the related event type.

on_error

Callback to execute on error.

on_disconnect

Callback to execute on disconnect.

SEE ALSO

AnyEvent::HTTP

http://developers.digg.com/version2/stream

REQUESTS AND BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc AnyEvent::Digg::Stream

You can also look for information at:

COPYRIGHT AND LICENSE

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.

AUTHOR

gray, <gray at cpan.org>