| 1 | package WebService::Mattermost::V4::API::Resource::Audits; | ||
| 2 | |||
| 3 | # ABSTRACT: Wrapped API methods for the audits API endpoints. | ||
| 4 | |||
| 5 | 12 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 12 | ▶ | use Types::Standard 'Str'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 12 | extends 'WebService::Mattermost::V4::API::Resource'; | |
| 9 | |||
| 10 | ################################################################################ | ||
| 11 | |||
| 12 | 12 | has view_name => (is => 'ro', isa => Str, default => 'Audit'); | |
| 13 | |||
| 14 | ################################################################################ | ||
| 15 | |||
| 16 | sub get { | ||
| 17 | 1 | ▶ | my $self = shift; |
|
Subroutine
get: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | 1 | my $args = shift; | |
| 19 | |||
| 20 | 1 | return $self->_get({ parameters => $args }); | |
| 21 | } | ||
| 22 | |||
| 23 | ################################################################################ | ||
| 24 | |||
| 25 | 12 | 1; | |
| 26 | |||
| 27 | __END__ | ||
| 28 | |||
| 29 | =pod | ||
| 30 | |||
| 31 | =encoding UTF-8 | ||
| 32 | |||
| 33 | =head1 NAME | ||
| 34 | |||
| 35 | WebService::Mattermost::V4::API::Resource::Audits - Wrapped API methods for the audits API endpoints. | ||
| 36 | |||
| 37 | =head1 VERSION | ||
| 38 | |||
| 39 | version 0.28 | ||
| 40 | |||
| 41 | =head1 DESCRIPTION | ||
| 42 | |||
| 43 | =head2 USAGE | ||
| 44 | |||
| 45 | use WebService::Mattermost; | ||
| 46 | |||
| 47 | my $mm = WebService::Mattermost->new({ | ||
| 48 | authenticate => 1, | ||
| 49 | username => 'me@somewhere.com', | ||
| 50 | password => 'hunter2', | ||
| 51 | base_url => 'https://my.mattermost.server.com/api/v4/', | ||
| 52 | }); | ||
| 53 | |||
| 54 | my $resource = $mm->api->audits; | ||
| 55 | |||
| 56 | =head2 METHODS | ||
| 57 | |||
| 58 | =over 4 | ||
| 59 | |||
| 60 | =item C<get()> | ||
| 61 | |||
| 62 | L<Get audits|https://api.mattermost.com/#tag/system%2Fpaths%2F~1audits%2Fget> | ||
| 63 | |||
| 64 | my $response = $resource->get({ | ||
| 65 | # Optional parameters: | ||
| 66 | page => 0, | ||
| 67 | per_page => 60, | ||
| 68 | }); | ||
| 69 | |||
| 70 | =back | ||
| 71 | |||
| 72 | =head1 AUTHOR | ||
| 73 | |||
| 74 | Mike Jones <mike@netsplit.org.uk> | ||
| 75 | |||
| 76 | =head1 COPYRIGHT AND LICENSE | ||
| 77 | |||
| 78 | This software is Copyright (c) 2020 by Mike Jones. | ||
| 79 | |||
| 80 | This is free software, licensed under: | ||
| 81 | |||
| 82 | The MIT (X11) License | ||
| 83 | |||
| 84 | =cut | ||