line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
# ABSTRACT: MailboxOrg::API::Hello |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# --- |
5
|
|
|
|
|
|
|
# This class is auto-generated by bin/get_mailbox_api.pl |
6
|
|
|
|
|
|
|
# --- |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use v5.24; |
9
|
2
|
|
|
2
|
|
1049
|
|
|
2
|
|
|
|
|
6
|
|
10
|
|
|
|
|
|
|
use strict; |
11
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
39
|
|
12
|
2
|
|
|
2
|
|
10
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
43
|
|
13
|
|
|
|
|
|
|
use Moo; |
14
|
2
|
|
|
2
|
|
25
|
use Types::Standard qw(Enum Str Int InstanceOf ArrayRef); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
14
|
|
15
|
2
|
|
|
2
|
|
592
|
use API::MailboxOrg::Types qw(HashRefRestricted Boolean); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
16
|
|
16
|
2
|
|
|
2
|
|
2203
|
use Params::ValidationCompiler qw(validation_for); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
12
|
|
17
|
2
|
|
|
2
|
|
840
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
122
|
|
18
|
|
|
|
|
|
|
extends 'API::MailboxOrg::APIBase'; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
with 'MooX::Singleton'; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
use feature 'signatures'; |
23
|
2
|
|
|
2
|
|
11
|
no warnings 'experimental::signatures'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
161
|
|
24
|
2
|
|
|
2
|
|
58
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
395
|
|
25
|
|
|
|
|
|
|
our $VERSION = '1.0.1'; # VERSION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my %validators = ( |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
my $validator = $validators{'innerworld'}; |
33
|
0
|
|
|
0
|
1
|
0
|
%params = $validator->(%params) if $validator; |
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
34
|
0
|
|
|
|
|
0
|
|
35
|
0
|
0
|
|
|
|
0
|
my %opt = (needs_auth => 1); |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
0
|
return $self->_request( 'hello.innerworld', \%params, \%opt ); |
38
|
|
|
|
|
|
|
} |
39
|
0
|
|
|
|
|
0
|
|
40
|
|
|
|
|
|
|
my $validator = $validators{'world'}; |
41
|
|
|
|
|
|
|
%params = $validator->(%params) if $validator; |
42
|
1
|
|
|
1
|
1
|
2
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
1
|
|
43
|
1
|
|
|
|
|
3
|
my %opt = (); |
44
|
1
|
50
|
|
|
|
4
|
|
45
|
|
|
|
|
|
|
return $self->_request( 'hello.world', \%params, \%opt ); |
46
|
1
|
|
|
|
|
2
|
} |
47
|
|
|
|
|
|
|
|
48
|
1
|
|
|
|
|
9
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=pod |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=encoding UTF-8 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 NAME |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
API::MailboxOrg::API::Hello - MailboxOrg::API::Hello |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 VERSION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
version 1.0.1 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 SYNOPSIS |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
use API::MailboxOrg; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
my $user = '1234abc'; |
69
|
|
|
|
|
|
|
my $password = '1234abc'; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
my $api = API::MailboxOrg->new( |
72
|
|
|
|
|
|
|
user => $user, |
73
|
|
|
|
|
|
|
password => $password, |
74
|
|
|
|
|
|
|
); |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 METHODS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 innerworld |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Returns the string 'Hello Inner-World!' if called from a valid session |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Available for admin, reseller, account, domain, mail |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
returns: string |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
$api->hello->innerworld(%params); |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 world |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Returns the string 'Hello World!' |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
returns: string |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
$api->hello->world(%params); |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 AUTHOR |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Renee Baecker <reneeb@cpan.org> |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
This software is Copyright (c) 2022 by Renee Baecker. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
This is free software, licensed under: |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=cut |