Hyungsuk Hong > AnyEvent-Campfire-Client-0.0.1 > AnyEvent::Campfire::Client

Download:
AnyEvent-Campfire-Client-0.0.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.0.1   Source   Latest Release: AnyEvent-Campfire-Client-0.0.2

NAME ^

AnyEvent::Campfire::Client

VERSION ^

version 0.0.1

SYNOPSIS ^

    use AnyEvent::Campfire::Client;
    my $client = AnyEvent::Campfire::Client->new(
        token => 'xxxx',
        rooms => '1234',
        account => 'p5-hubot',
    );

    $client->on(
        'join',
        sub {
            my ($e, $data) = @_; # $e is event emitter. please ignore it.
            $client->speak($data->{room}, "hi");
        }
    );

    $client->on(
        'message',
        sub {
            my ($e, $data) = @_;
            # ...
        }
    );

    ## want to exit?
    $client->exit;

AUTHOR ^

Hyungsuk Hong <hshong@perl.kr>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Hyungsuk Hong.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: