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