| 1 | package WWW::Stickam::API::Media::Information; | ||||||||||
| 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 $media_id = $args->{media_id}; | |||||||||
| 11 | 2 | ▶ | die 'You must set media_id' unless $media_id; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 2 | delete $args->{media_id}; | |||||||||
| 13 | 2 | my $uri = "http://api.stickam.com/api/media/$media_id/"; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | 2 | 1; | |||||||||
| 17 | |||||||||||
| 18 | =head1 NAME | ||||||||||
| 19 | |||||||||||
| 20 | WWW::Stickam::API::Media::Information - Media/Information API | ||||||||||
| 21 | |||||||||||
| 22 | =head1 SYNOPSYS | ||||||||||
| 23 | |||||||||||
| 24 | my $api = WWW::Stickam::API->new(); | ||||||||||
| 25 | if( $api->call('Media/Information' , { media_id => 170159586 } ) ) { | ||||||||||
| 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/#media-information | ||||||||||
| 41 | |||||||||||
| 42 | =head1 AUTHOR | ||||||||||
| 43 | |||||||||||
| 44 | Tomohiro Teranishi<tomohiro.teranishi@gmail.com> | ||||||||||
| 45 | |||||||||||
| 46 | =cut | ||||||||||