NAME

WebService::Mattermost::V4::API::Resource::IntegrationActions - Wrapped API methods for the integration actions API endpoints.

VERSION

version 0.31

DESCRIPTION

Wrapped API methods for the integration actions endpoints.

USAGE

use WebService::Mattermost;

my $mm = WebService::Mattermost->new({
    authenticate => 1,
    username     => 'email@address.com',
    password     => 'passwordhere',
    base_url     => 'https://my.mattermost.server.com/api/v4/',
});

my $resource = $mm->api->integration_actions;

METHODS

open()

Open a dialog

my $response = $resource->open({
    # Required parameters:
    trigger_id => 'TRIGGER-ID-HERE',
    url        => '...',
    dialog     => {
        # See Mattermost API documentation (above) for payload
    },
});
create()

Submit a dialog

my $response = $resource->create({
    # Required parameters:
    url        => '...',
    channel_id => 'CHANNEL-ID-HERE',
    team_id    => 'TEAM-ID-HERE',
    submission => {
        # See Mattermost API documentation (above) for payload
    },

    # Optional parameters
    callback_id => 'CALLBACK-ID-HERE',
    state       => '...',
    cancelled   => 1, # Boolean, 1 or 0
});

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