WebService::Mattermost::V4::API::Resource::Plugin
use WebService::Mattermost; my $mm = WebService::Mattermost->new({ authenticate => 1, username => 'me@somewhere.com', password => 'hunter2', base_url => 'https://my.mattermost.server.com/api/v4/', }); my $resource = $mm->api->plugin;
Optionally, you can set a global plugin ID and not pass that argument to every method:
$resource->id('PLUGIN-ID-HERE');
This would make the deactivate() call look like:
deactivate()
my $response = $resource->deactivate();
remove()
Remove plugin
my $response = $resource->remove('PLUGIN-ID-HERE');
activate()
Activate plugin
my $response = $resource->activate('PLUGIN-ID-HERE');
Deactivate plugin
my $response = $resource->deactivate('PLUGIN-ID-HERE');
Mike Jones email:mike@netsplit.org.uk
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.