Commit 695011b9 authored by Mike Jones's avatar Mike Jones 🌶

Merge branch 'dev' into 'master'

API methods for Emoji

See merge request !39
parents 62c895b4 7a366483
......@@ -5,6 +5,7 @@ use Types::Standard qw(Str Int);
extends 'WebService::Mattermost::V4::API::Object';
with qw(
WebService::Mattermost::V4::API::Object::Role::APIMethods
WebService::Mattermost::V4::API::Object::Role::Timestamps
WebService::Mattermost::V4::API::Object::Role::BelongingToUser
WebService::Mattermost::V4::API::Object::Role::ID
......@@ -13,6 +14,20 @@ with qw(
################################################################################
sub BUILD {
my $self = shift;
$self->api_resource_name('emoji');
$self->available_api_methods([ qw(
delete
get_image
) ]);
return 1;
}
################################################################################
1;
__END__
......@@ -24,10 +39,33 @@ WebService::Mattermost::V4::API::Object::Emoji
Details a Mattermost Emoji object.
=head2 METHODS
See matching methods in C<WebService::Mattermost::V4::API::Resource::Emoji>
for full documentation.
ID parameters are not required:
my $response = $mattermost->api->emoji->get('ID-HERE')->item->get_image();
Is the same as:
my $response = $mattermost->api->emoji->get_image('ID-HERE');
=over 4
=item C<delete()>
=item C<get_image()>
=back
=head1 SEE ALSO
=over 4
=item C<WebService::Mattermost::V4::API::Object::Emoji>
=item C<WebService::Mattermost::V4::API::Object::Role::Timestamps>
=item C<WebService::Mattermost::V4::API::Object::Role::BelongingToUser>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment