WebService::Mattermost::V4::API::Resource::File
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;
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');
Mike Jones email:mike@netsplit.org.uk
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.