NAME
    AnyEvent::Plurk - plurk interface for AnyEvent-based programs

SYNOPSIS
        my $p = AnyEvent::Plurk->new(
            username => $username,
            password => $password
        );
        $p->reg_cb(
            unread_plurks => sub {
                my ($p, $plurks) = @_;
                is(ref($plurks), "ARRAY", "Received latest plurks");
            }
        );

        my $v = AE::cv;
        $p->start;
        $v->recv;

METHODS
    reg_cb( x => $cb, ...)
        Register a callback for event x. See below for the list of events.

    start
        Start polling plurk.com for plurks. In the current implementation,
        it only checks new plurks ever 60 seconds.

    add_plurk( $content )
        Add a new plurk with the given text $content.

    delete_plurk( $id )
        Delete the plurk with the given plurk $id.

EVENTS
    unread_plurks
        Arguments to callback: ($self, $plurks)

        $self is the "AnyEvent::Plurk" object which emits this event, and
        $plurks is the arrayref to the list of plurks just receieved.

        Each elements in $plurks is a hashref. See Net::Plurk for the
        explaination of the its keys.

AUTHOR
    Kang-min Liu "<gugod@gugod.org>"

LICENCE AND COPYRIGHT
    Copyright (c) 2009, Kang-min Liu "<gugod@gugod.org>".

    This is free software, licensed under:

        The MIT (X11) License

DISCLAIMER OF WARRANTY
    BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
    FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
    OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
    PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
    EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
    ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
    YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
    NECESSARY SERVICING, REPAIR, OR CORRECTION.

    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
    WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
    REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
    TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
    CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
    SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
    RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
    FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
    SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
    DAMAGES.

