AnyEvent-Mattermost
view release on metacpan or search on metacpan
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively convey
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
lib/AnyEvent/Mattermost.pm view on Meta::CPAN
$self->{'registry'}{$type} = $cb;
}
}
=head2 send
$mconn->send( \%message );
Posts a message to the Mattermost server. This method is currently fairly
limited and supports only providing a channel name and a message body. There
are formatting, attachment, and other features that are planned to be
supported in future releases.
The C<\%message> hash reference should contain at bare minimum two keys:
=over 4
=item * channel
The name of the channel to which the message should be posted. This may be
either the short name (which appears in URLs in the web UI) or the display
( run in 1.990 second using v1.01-cache-2.11-cpan-e1769b4cff6 )