The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::Mattermost::V4::API::Resource::Jobs - Wrapped API methods for the jobs 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->teams->jobs;

METHODS

all()

Get the jobs

Get all the jobs.

    my $response = $resource->all({
        # Optional arguments
        page     => 0,
        per_page => 60,
    });
create()

Create a new job

    my $response = $resource->create({
        # Required arguments
        type => 'JOB-TYPE',

        # Optional arguments
        data => {},
    });
get_by_type()

https://api.mattermost.com/#tag/jobs%2Fpaths%2F~1jobs~1type~1%7Btype%7D%2Fget

    my $response = $resource->get_by_type('JOB-TYPE-HERE');

SEE ALSO

Official Jobs documentation

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