NAME

API::Instagram::Location - Instagram Location Object

VERSION

version 0.013

SYNOPSIS

my $location = $instagram->location(123);

printf "Media Location: %s (%f,%f)", $location->name, $location->latitude, $location->longitude;

for my $media ( @{ $location->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/locations/.

ATTRIBUTES

id

Returns the location id.

name

Returns the name of the location.

latitude

Returns the latitude of the location.

longitude

Returns the longitude of the location.

METHODS

recent_medias

my $medias = $location->recent_medias( count => 5 );
print $_->caption . $/ for @$medias;

Returns a list of API::Instagram::Media objects of recent medias from the location.

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.