AnyEvent::SparkBot::SharedRole - Shared methods for SparkBot
use Modern::Perl; use Moo; BEGIN { with 'AnyEvent::SparkBot::SharedRole' }
Shared functions used between different sparkbot classes.
The following arguments are required when creating a new instance of a class that uses this role:
token: This is the cisco authentication token for your app
my $uuid=$self->uuidv4()
Returns the next uuid.v4 ( md5 sum base64 encoded, due to limitations of cisco spark )
my $headers=$self->default_headers()
Returns an HTTP::Headers Object that contains the default header values
Michael Shipper <AKALINUX@CPAN.ORG>
To install AnyEvent::SparkBot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::SparkBot
CPAN shell
perl -MCPAN -e shell install AnyEvent::SparkBot
For more information on module installation, please visit the detailed CPAN module installation guide.