NAME
API::Instagram::Tag - Instagram Tag Object
VERSION
version 0.012
SYNOPSIS
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;
}
DESCRIPTION
See http://instagr.am/developer/endpoints/tags/.
ATTRIBUTES
name
Returns the Tag name.
media_count
Returns the total media tagged with it.
METHODS
recent_medias
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.
AUTHOR
Gabriel Vieira <gabriel.vieira@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Gabriel Vieira.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.