NAME

WebService::Mattermost::V4::API::Resource::Bots - Wrapped API methods for the bots 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->bots;

METHODS

  • get()

    Get a bot

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

    Allow the search to include a deleted bot:

    my $response = $resource->get('ID-HERE', {
        include_deleted => 1,
    });
  • list()

    Get bots

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

    With optional parameters:

    my $response = $resource->list({
        include_deleted => 1,
        only_orphaned   => 1,
        page            => 0,
        per_page        => 60,
    });

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