line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tropo::WebAPI::Call; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: "Call" someone via Tropo API |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
1450
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
73
|
|
6
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
66
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
938
|
use Moo; |
|
2
|
|
|
|
|
17521
|
|
|
2
|
|
|
|
|
14
|
|
9
|
2
|
|
|
2
|
|
2562
|
use Types::Standard qw(Int Str Bool ArrayRef Dict); |
|
2
|
|
|
|
|
71580
|
|
|
2
|
|
|
|
|
30
|
|
10
|
2
|
|
|
2
|
|
2835
|
use Type::Tiny; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
599
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
extends 'Tropo::WebAPI::Base'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Tropo::WebAPI::Base::register(); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $VERSION = 0.01; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has to => ( |
19
|
|
|
|
|
|
|
is => 'ro', |
20
|
|
|
|
|
|
|
isa => Str, |
21
|
|
|
|
|
|
|
required => 1, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has from => ( |
25
|
|
|
|
|
|
|
is => 'ro', |
26
|
|
|
|
|
|
|
isa => Str, |
27
|
|
|
|
|
|
|
exclude_from_json => 1, |
28
|
|
|
|
|
|
|
); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
has ['network', 'channel'] => ( |
31
|
|
|
|
|
|
|
is => 'ro', |
32
|
|
|
|
|
|
|
isa => Str, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
has 'answer_on_media' => ( |
36
|
|
|
|
|
|
|
is => 'ro', |
37
|
|
|
|
|
|
|
isa => Bool, |
38
|
|
|
|
|
|
|
); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
has timeout => ( |
41
|
|
|
|
|
|
|
is => 'ro', |
42
|
|
|
|
|
|
|
isa => Int, |
43
|
|
|
|
|
|
|
); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
has headers => ( |
46
|
|
|
|
|
|
|
is => 'ro', |
47
|
|
|
|
|
|
|
isa => ArrayRef[Str], |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
has recording => ( |
51
|
|
|
|
|
|
|
is => 'ro', |
52
|
|
|
|
|
|
|
isa => Dict[ |
53
|
|
|
|
|
|
|
name => Str, |
54
|
|
|
|
|
|
|
], |
55
|
|
|
|
|
|
|
); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
has allow_signals => ( |
58
|
|
|
|
|
|
|
is => 'ro', |
59
|
|
|
|
|
|
|
isa => ArrayRef[], |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub BUILDARGS { |
63
|
3
|
|
|
3
|
0
|
15995
|
my ( $class, @args ) = @_; |
64
|
|
|
|
|
|
|
|
65
|
3
|
50
|
|
|
|
19
|
unshift @args, "to" if @args % 2 == 1; |
66
|
|
|
|
|
|
|
|
67
|
3
|
|
|
|
|
348
|
return { @args }; |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
1; |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
__END__ |