NAME
WebService::Mattermost::V4::API::Resource::OAuth
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 email:mike@netsplit.org.uk