File Coverage

blib/lib/WebService/Mattermost/V4/API/Resource/LDAP.pm
Criterion Covered Total %
statement 3 7 42.8
branch n/a
condition n/a
subroutine 1 3 33.3
pod 2 2 100.0
total 6 12 50.0


line stmt bran cond sub pod time code
1             package WebService::Mattermost::V4::API::Resource::LDAP;
2              
3             # ABSTRACT: Wrapped API methods for the LDAP API endpoints.
4              
5 7     7   47 use Moo;
  7         22  
  7         40  
6              
7             extends 'WebService::Mattermost::V4::API::Resource';
8              
9             ################################################################################
10              
11             sub sync {
12 0     0 1       my $self = shift;
13              
14 0               return $self->_post({
15                     endpoint => 'sync',
16                     view => 'Status',
17                 });
18             }
19              
20             sub test {
21 0     0 1       my $self = shift;
22              
23 0               return $self->_post({
24                     endpoint => 'test',
25                     view => 'Status',
26                 });
27             }
28              
29             ################################################################################
30              
31             1;
32              
33             __END__
34            
35             =pod
36            
37             =encoding UTF-8
38            
39             =head1 NAME
40            
41             WebService::Mattermost::V4::API::Resource::LDAP - Wrapped API methods for the LDAP API endpoints.
42            
43             =head1 VERSION
44            
45             version 0.26
46            
47             =head1 DESCRIPTION
48            
49             =head2 USAGE
50            
51             use WebService::Mattermost;
52            
53             my $mm = WebService::Mattermost->new({
54             authenticate => 1,
55             username => 'email@address.com',
56             password => 'passwordhere',
57             base_url => 'https://my.mattermost.server.com/api/v4/',
58             });
59            
60             my $ldap = $mm->api->ldap;
61            
62             =head2 METHODS
63            
64             =over 4
65            
66             =item C<sync()>
67            
68             $ldap->sync;
69            
70             =item C<test()>
71            
72             $ldap->test;
73            
74             =back
75            
76             =head1 SEE ALSO
77            
78             =over 4
79            
80             =item L<https://api.mattermost.com/#tag/LDAP>
81            
82             Official "LDAP" API documentation.
83            
84             =back
85            
86             =head1 AUTHOR
87            
88             Mike Jones <mike@netsplit.org.uk>
89            
90             =head1 COPYRIGHT AND LICENSE
91            
92             This software is Copyright (c) 2020 by Mike Jones.
93            
94             This is free software, licensed under:
95            
96             The MIT (X11) License
97            
98             =cut
99