WebService::Mattermost::Role::UserAgent - Internal user agent role.
version 0.26
Bundles Mojo::UserAgent and required parameters for HTTP headers.
Mojo::UserAgent
use Moo; with 'WebService::Mattermost::Role::UserAgent'; sub something { my $self = shift; my $bearer_header = $self->bearer; my $mmauthtoken = $self->mmauthtoken; # Methods from Mojo::UserAgent $self->ua->post( # ... ); }
ua
A Mojo::UserAgent object.
mmauthtoken()
Formats the MMAUTHTOKEN header.
MMAUTHTOKEN
bearer
Formats the Bearer header.
Bearer
Mike Jones <mike@netsplit.org.uk>
This software is Copyright (c) 2020 by Mike Jones.
This is free software, licensed under:
The MIT (X11) License
To install WebService::Mattermost, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Mattermost
CPAN shell
perl -MCPAN -e shell install WebService::Mattermost
For more information on module installation, please visit the detailed CPAN module installation guide.