lib/WWW/Stickam/API/User/Audio.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 95.6% 22 / 23 CC 2 SCAR 3.4
CC
2
Cov
94%
uri
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« lib/WWW/Stickam/API/Media/Information.pm ↑ Summary lib/WWW/Stickam/API/User/Image.pm »
1 package WWW::Stickam::API::User::Audio;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use base qw/WWW::Stickam::API::Base/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶sub uri {
Subroutine uri: called CC=2 SCAR=7.0
Pod documented
8 2 my $s = shift;
9 2 my $args = shift;
10 2 my $user_name = $args->{user_name};
11 2 ▶ die 'You must set user name ' unless $user_name;
Branch: 1 branch
BranchTrueFalseTotal
unless $user_name 0 2 2
12 2 delete $args->{user_name};
13 2 my $uri = "http://api.stickam.com/api/user/$user_name/audio/";
14 }
15  
16 2 1;
17  
18 =head1 NAME
19  
20 WWW::Stickam::API::User::Audio - User/Audio API
21  
22 =head1 SYNOPSYS
23  
24 my $api = WWW::Stickam::API->new();
25 if( $api->call('User/Audio' , { user_name => 'stickam' , page => 1 , per_page => 2 } ) ) {
26 print Dumper $api->get();
27 print $api->get_XML();
28 print $api->get_JSON();
29 }
30 else {
31 print $api->error ;
32 }
33  
34 =head1 METHOD
35  
36 =head2 uri
37  
38 =head1 SEE ALSO
39  
40 http://labs.stickam.jp/api/#user-audio
41  
42 =head1 AUTHOR
43  
44 Tomohiro Teranishi<tomohiro.teranishi@gmail.com>
45  
46 =cut
« lib/WWW/Stickam/API/Media/Information.pm ↑ Summary lib/WWW/Stickam/API/User/Image.pm »