| 1 | package WebService::Annict::Episodes; | ||
| 2 | 3 | ▶ | use 5.008001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use URI; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 9 | 1 | my ($class, $ua) = @_; | |
| 10 | |||
| 11 | 1 | bless { | |
| 12 | ua => $ua, | ||
| 13 | }, $class; | ||
| 14 | } | ||
| 15 | |||
| 16 | 0 | ▶ | sub get { |
|
Subroutine
get: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 17 | 0 | my ($self, %args) = @_; | |
| 18 | 0 | my $url = URI->new("https://api.annict.com/v1/"); | |
| 19 | |||
| 20 | 0 | $url->query_form(\%args); | |
| 21 | 0 | $self->{ua}->get($url->as_string); | |
| 22 | } | ||
| 23 | |||
| 24 | 3 | 1; | |