The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

API::Instagram::Location - Instagram Location Object

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.

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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 52:

Unknown directive: =METHODS