NAME

AnyEvent::SparkBot::SharedRole - Shared methods for SparkBot

SYNOPSIS

  use Modern::Perl;
  use Moo;
  BEGIN { with 'AnyEvent::SparkBot::SharedRole' }

DESCRIPTION

Shared functions used between different sparkbot classes.

Constructor Arguments added

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

Role methods

  • 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

AUTHOR

Michael Shipper <AKALINUX@CPAN.ORG>