line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Slack::WebApi::Oauth; |
2
|
3
|
|
|
3
|
|
2202
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
89
|
|
3
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
72
|
|
4
|
3
|
|
|
3
|
|
14
|
use utf8; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
15
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
97
|
use parent 'WebService::Slack::WebApi::Base'; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
13
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
1689
|
use WebService::Slack::WebApi::Oauth::V2; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
130
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use Class::Accessor::Lite::Lazy ( |
11
|
3
|
|
|
|
|
26
|
ro_lazy => [qw/ v2 /], |
12
|
3
|
|
|
3
|
|
20
|
); |
|
3
|
|
|
|
|
6
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
use WebService::Slack::WebApi::Generator ( |
15
|
3
|
|
|
|
|
50
|
access => { |
16
|
|
|
|
|
|
|
client_id => 'Str', |
17
|
|
|
|
|
|
|
client_secret => 'Str', |
18
|
|
|
|
|
|
|
code => 'Str', |
19
|
|
|
|
|
|
|
redirect_uri => { isa => 'Str', optional => 1 }, |
20
|
|
|
|
|
|
|
}, |
21
|
|
|
|
|
|
|
token => { |
22
|
|
|
|
|
|
|
client_id => 'Str', |
23
|
|
|
|
|
|
|
client_secret => 'Str', |
24
|
|
|
|
|
|
|
code => 'Str', |
25
|
|
|
|
|
|
|
redirect_uri => { isa => 'Str', optional => 1 }, |
26
|
|
|
|
|
|
|
single_channel => { isa => 'Bool', optional => 1 }, |
27
|
|
|
|
|
|
|
}, |
28
|
3
|
|
|
3
|
|
463
|
); |
|
3
|
|
|
|
|
7
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub _build_v2 { |
31
|
3
|
|
|
3
|
|
3002
|
return WebService::Slack::WebApi::Oauth::V2->new(client => shift->client); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|