WebService::Mattermost::V4::API::Resource::OAuth::Application - Wrapped API methods for the OAuth application API endpoints.
version 0.25
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->application;
get()
Get an OAuth app
my $response = $resource->get('ID-HERE');
update()
Update an OAuth app
my $response = $resource->update('ID-HERE', { # Required parameters: id => 'ID-HERE', name => '...', description => '...', callback_urls => [ '...' ], homepage => '...', # Optional parameters: icon_url => '...', is_trusted => \0, # or \1 for true });
delete()
Delete an OAuth app
my $response = $resource->delete('ID-HERE');
regenerate_secret()
Regenerate OAuth app secret
my $response = $resource->regenerate_secret('ID-HERE');
get_info()
Get info on an OAuth app
my $response = $resource->get_info('ID-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.