WebService::Mattermost::V4::API::Resource::Jobs - Wrapped API methods for the jobs API endpoints.
version 0.26
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;
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');
Mike Jones <mike@netsplit.org.uk>
This software is Copyright (c) 2020 by Mike Jones.
This is free software, licensed under:
The MIT (X11) License
To install WebService::Mattermost, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Mattermost
CPAN shell
perl -MCPAN -e shell install WebService::Mattermost
For more information on module installation, please visit the detailed CPAN module installation guide.