WWW::Pusher - Interface to the Pusher WebSockets API
Version 0.01
use WWW::Pusher; my $pusher = WWW::Pusher->new(key => 'YOUR API KEY', channel => 'test_channel'); my $response = $pusher->trigger(event => 'my_event', data => 'Hello, World!');
Creates a new WWW::Pusher object. Both API key and Channel are mandatory.
You can optionally specify the host and port keys and override using pusherapp.com's server if you wish. Setting debug to a true value will return an LWP::UserAgent response object in the event a trigger fails.
Send an event to the channel. The event name should be a scalar, but data could in theory be a hash/arrayref.
Returns "OK" on success, or undef on failure. Setting "debug" to a true value will return an LWP::UserAgent response object.
Squeeks, <squeek at cpan.org>
<squeek at cpan.org>
Please report any bugs or feature requests to bug-www::pusher at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW::Pusher. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-www::pusher at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc WWW::Pusher
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW::Pusher
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/WWW::Pusher
CPAN Ratings
http://cpanratings.perl.org/d/WWW::Pusher
Search CPAN
http://search.cpan.org/dist/WWW::Pusher/
Pusher - http://pusherapp.com
Copyright 2010 Squeeks.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install WWW::Pusher, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Pusher
CPAN shell
perl -MCPAN -e shell install WWW::Pusher
For more information on module installation, please visit the detailed CPAN module installation guide.