NAME

WebService::Mattermost::V4::API::Resource::Team::Channels - Wrapped API methods for the team channels 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->team->channels;

METHODS

by_ids()

Get a list of channels by IDs

my $response = $resource->get_by_ids('team-id-here', [ qw(
    first_channel_id
    second_channel_id
    third_channel_id
) ]);
public()

Get public channels

my $response = $resource->public('team-id-here', {
    # Optional arguments
    page     => 1,
    per_page => 60,
});
deleted()

Get deleted channels

my $response = $resource->deleted('team-id-here', {
    # Optional arguments
    page     => 1,
    per_page => 60,
});
autocomplete()

Autocomplete channels

my $response = $resource->autocomplete('team-id-here', {
    # Required arguments
    name => 'Something',
});
search()

Search channels

my $response = $resource->search('team-id-here', {
    # Required arguments
    term => 'Something',
});

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