NAME

API::Instagram::Tag - Instagram Tag Object

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.