NAME
WebService::Mattermost::V4::API::Resource::File - Wrapped API methods for the file API endpoints.
VERSION
version 0.29
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->file;
METHODS
get()
-
Get basic information about a file.
$resource->get('FILE_ID_HERE');
get_thumbnail()
-
Get a file's thumbnail
$resource->get_thumbnail('FILE_ID_HERE');
get_preview()
-
Get a file's preview.
$resource->get_preview('FILE_ID_HERE');
get_link()
-
Get a public link to a file.
$resource->get_link('FILE_ID_HERE');
get_metadata()
-
Get information about a file.
$resource->get_metadata('FILE_ID_HERE');
SEE ALSO
AUTHOR
Mike Jones <mike@netsplit.org.uk>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2020 by Mike Jones.
This is free software, licensed under:
The MIT (X11) License