Net::Flowdock::Stream - Streaming API for Flowdock
version 0.01
my $stream = Net::Flowdock::Stream->new( token => '...', flows => ['myorg/testing'], ); while (1) { if (my $event = $stream->get_next_event) { process_event($event); } }
This module implements the streaming api for Flowdock. It provides a non-blocking method which you can call to get the next available event in the stream. You can then integrate this method into your existing event-driven app.
Your account's API token, for authentication. Required unless email and password are provided.
email
password
Your account's email address, for authentication. Required unless token is provided.
token
Your account's password, for authentication. Required unless token is provided.
An arrayref of flows that should be listened to for events. Note that the flow names must include the organization, so myorg/testing, not just testing.
myorg/testing
testing
Returns the next event that has been received in the stream. This call is nonblocking, and will return undef if no events are currently available.
No known bugs.
Please report any bugs through RT: email bug-net-flowdock-stream at rt.cpan.org, or browse to http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Flowdock-Stream.
bug-net-flowdock-stream at rt.cpan.org
https://www.flowdock.com/
You can find this documentation for this module with the perldoc command.
perldoc Net::Flowdock::Stream
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-Flowdock-Stream
CPAN Ratings
http://cpanratings.perl.org/d/Net-Flowdock-Stream
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Flowdock-Stream
Search CPAN
http://search.cpan.org/dist/Net-Flowdock-Stream
Jesse Luehrs <doy at tozt dot net>
This software is copyright (c) 2012 by Jesse Luehrs.
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 Net::Flowdock::Stream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Flowdock::Stream
CPAN shell
perl -MCPAN -e shell install Net::Flowdock::Stream
For more information on module installation, please visit the detailed CPAN module installation guide.