line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Annict; |
2
|
2
|
|
|
2
|
|
13955
|
use 5.008001; |
|
2
|
|
|
|
|
3
|
|
3
|
2
|
|
|
2
|
|
6
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
29
|
|
4
|
2
|
|
|
2
|
|
5
|
use warnings; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
41
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
1053
|
use LWP::UserAgent; |
|
2
|
|
|
|
|
62286
|
|
|
2
|
|
|
|
|
53
|
|
7
|
2
|
|
|
2
|
|
13
|
use HTTP::Headers; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
34
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
698
|
use WebService::Annict::Works; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
45
|
|
10
|
2
|
|
|
2
|
|
614
|
use WebService::Annict::Episodes; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
43
|
|
11
|
2
|
|
|
2
|
|
624
|
use WebService::Annict::Records; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
180
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = "0.02"; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
1
|
|
|
1
|
0
|
10
|
my ($class, %args) = @_; |
17
|
1
|
|
|
|
|
2
|
my $access_token = $args{access_token}; |
18
|
1
|
|
|
|
|
87
|
my $ua = LWP::UserAgent->new( |
19
|
|
|
|
|
|
|
agent => "Perl5 WebService::Annict/$VERSION", |
20
|
|
|
|
|
|
|
default_headers => HTTP::Headers->new( |
21
|
|
|
|
|
|
|
"Content-Type" => "application/json", |
22
|
|
|
|
|
|
|
Accept => "application/json", |
23
|
|
|
|
|
|
|
Authorization => "Bearer $access_token", |
24
|
|
|
|
|
|
|
), |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
|
|
1891
|
bless { |
28
|
|
|
|
|
|
|
works => WebService::Annict::Works->new($ua), |
29
|
|
|
|
|
|
|
}, $class; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
__END__ |