| 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
| |||||||||||
| 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 | ||||||||||