The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WebService::Mattermost::V4::API::Resource::Plugin - Wrapped API methods for the plugin API endpoints.

VERSION

version 0.30

DESCRIPTION

USAGE

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:

my $response = $resource->deactivate();

METHODS

remove()

Remove plugin

my $response = $resource->remove('PLUGIN-ID-HERE');
activate()

Activate plugin

my $response = $resource->activate('PLUGIN-ID-HERE');
deactivate()

Deactivate plugin

my $response = $resource->deactivate('PLUGIN-ID-HERE');

AUTHOR

Mike Jones <mike@netsplit.org.uk>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2023 by Mike Jones.

This is free software, licensed under:

The MIT (X11) License