NAME
WebService::Mattermost::V4::API::Resource::OAuth - Wrapped API methods for the OAuth 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->oauth;
METHODS
register_app()
-
my $response = $resource->register_app({ # Required parameters: name => '...', description => '...', callback_urls => [ '...' ], homepage => '...', # Optional parameters: icon_url => '...', is_trusted => \0, # or \1 for true });
get_apps()
-
my $response = $resource->get_apps({ # Optional parameters: page => 0, per_page => 60, });
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