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 all the jobs.
my $response = $resource->all({ # Optional arguments page => 0, per_page => 60, });
create()
-
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
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