lib/WWW/Stickam/API/User/Image.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/User/Audio.pm ↑ Summary lib/WWW/Stickam/API/User/Profile.pm »
1 package WWW::Stickam::API::User::Image;
2  
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 3 ▶use base qw/WWW::Stickam::API::Base/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶sub uri {
Subroutine uri: called CC=2 SCAR=7.0
Pod documented
8 3 my $s = shift;
9 3 my $args = shift;
10 3 my $user_name = $args->{user_name};
11 3 ▶ die 'You must set user name ' unless $user_name;
Branch: 1 branch
BranchTrueFalseTotal
unless $user_name 0 3 3
12 3 delete $args->{user_name};
13 3 my $uri = "http://api.stickam.com/api/user/$user_name/image/";
14  
15 }
16  
17 3 1;
18  
19 =head1 NAME
20  
21 WWW::Stickam::API::User::Image - User/Image API
22  
23 =head1 SYNOPSYS
24  
25 my $api = WWW::Stickam::API->new();
26 if( $api->call('User/Image' , { user_name => 'stickam' , page => 1 , per_page => 2 } ) ) {
27 print Dumper $api->get();
28 print $api->get_XML();
29 print $api->get_JSON();
30 }
31 else {
32 print $api->error ;
33 }
34  
35 =head1 METHOD
36  
37 =head2 uri
38  
39 =head1 SEE ALSO
40  
41 http://labs.stickam.jp/api/#user-image
42  
43 =head1 AUTHOR
44  
45 Tomohiro Teranishi<tomohiro.teranishi@gmail.com>
46  
47 =cut
« lib/WWW/Stickam/API/User/Audio.pm ↑ Summary lib/WWW/Stickam/API/User/Profile.pm »