NAME
WebService::Mattermost::V4::API::Resource::Webhook::Incoming - Wrapped API methods for the incoming webhook API endpoints.
VERSION
version 0.29
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->webhooks->incoming;
METHODS
create()
-
my $response = $resource->create({ # Required parameters: channel_id => 'CHANNEL-ID-HERE', # Optional parameters: display_name => '...', description => '...', username => '...', icon_url => '...', });
list()
-
my $response = $resource->list({ # Optional parameters: page => 0, per_page => 60, team_id => 'TEAM-ID-HERE', });
get_by_id()
-
my $response = $resource->get_by_id('WEBHOOK-ID-HERE');
update_by_id()
-
my $response = $resource->update_by_id('WEBHOOK-ID-HERE', { # Required parameters: channel_id => 'CHANNEL-ID-HERE', display_name => '...', description => '...', # Optional parameters: username => '...', icon_url => '...', });
AUTHOR
Mike Jones <mike@netsplit.org.uk>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2020 by Mike Jones.
This is free software, licensed under:
The MIT (X11) License