NAME

AnyEvent::Campfire

VERSION

version 0.0.2

SYNOPSIS

package AnyEvent::Campfire::Foo;
use Moose;
extends 'AnyEvent::Campfire';

## now this has `token`, `rooms`, `account` attributes.
## and `emit`, `on` methods.
1;

DESCRIPTION

http://campfirenow.com/ API required token to `authorization`. you can check it out on https://<username.campfirenow.com/member/edit>.

ATTRIBUTES

token

API authentication token - get it via http://campfirenow.com/

rooms

describe campfire chat rooms separated by comma - ,.

account

signin account

METHODS

on

to subscribe event using on.

# call `on` with `event name` and `callback`.
$campfire->on('event-name', sub {
    my ($self, @args) = @_;
});
emit

you can emit the subscribed events.

# emit subscribed events.
$campfire->emit('event-name', $arg1, $arg2, ...);

SEE ALSO

https://github.com/37signals/campfire-api

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.