Net-Mattermost-Bot
view release on metacpan or search on metacpan
lib/Net/Mattermost/Bot.pm view on Meta::CPAN
################################################################################
has base_url => (is => 'ro', isa => Str, required => 1);
has team_name => (is => 'ro', isa => Str, required => 1);
has username => (is => 'ro', isa => Str, required => 1);
has password => (is => 'ro', isa => Str, required => 1);
has debug => (is => 'ro', isa => Bool, default => 0);
has ping_interval => (is => 'ro', isa => Int, default => 15);
has ssl_opts => (is => 'ro', isa => HashRef, default => sub { {} });
has token => (is => 'rw', isa => Str, default => '');
has user_id => (is => 'rw', isa => Str, default => '');
has api_url => (is => 'ro', isa => Str, lazy => 1, builder => '_build_api_url');
has endpoints => (is => 'ro', isa => HashRef, lazy => 1, builder => '_build_endpoints');
has furl => (is => 'ro', isa => Object, lazy => 1, builder => '_build_furl');
has headers => (is => 'rw', isa => ArrayRef, lazy => 1, builder => '_build_headers',
handles_via => 'Array',
handles => { add_header => 'push' });
has ws_url => (is => 'ro', isa => Str, lazy => 1, builder => '_build_ws_url');
################################################################################
sub connect {
my $self = shift;
( run in 0.528 second using v1.01-cache-2.11-cpan-5f2e87ce722 )