API::Instagram::Tag - Instagram Tag Object
my $tag = $instagram->tag('perl'); printf "Count: %s", $tag->media_count; for my $media ( @{ $tag->recent_medias( count => 5) } ) { printf "Caption: %s\n", $media->caption; printf "Posted by %s (%d likes)\n\n", $media->user->username, $media->likes; }
See http://instagr.am/developer/endpoints/tags/.
Returns the Tag name.
Returns the total media tagged with it.
my $medias = $tag->recent_medias( count => 5 ); print $_->caption . $/ for @m$edias;
Returns a list of API::Instagram::Media objects of recent medias tagged with it.
Accepts count, min_timestamp, min_id, max_id and max_timestamp as parameters.
count
min_timestamp
min_id
max_id
max_timestamp
To install API::Instagram, copy and paste the appropriate command in to your terminal.
cpanm
cpanm API::Instagram
CPAN shell
perl -MCPAN -e shell install API::Instagram
For more information on module installation, please visit the detailed CPAN module installation guide.