AnyEvent::Campfire
version 0.0.3
package AnyEvent::Campfire::Foo; use Moose; extends 'AnyEvent::Campfire'; ## now this has `token`, `rooms`, `account` attributes. ## and `emit`, `on` methods. 1;
http://campfirenow.com/ API required token to `authorization`. you can check it out on https://<username>.campfirenow.com/member/edit.
token
API authentication token - get it via http://campfirenow.com/
describe campfire chat rooms separated by comma - ,.
,
signin account
to subscribe event using on.
on
# call `on` with `event name` and `callback`. $campfire->on('event-name', sub { my ($self, @args) = @_; });
you can emit the subscribed events.
emit
# emit subscribed events. $campfire->emit('event-name', $arg1, $arg2, ...);
Hyungsuk Hong <hshong@perl.kr>
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.
To install AnyEvent::Campfire::Stream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Campfire::Stream
CPAN shell
perl -MCPAN -e shell install AnyEvent::Campfire::Stream
For more information on module installation, please visit the detailed CPAN module installation guide.