API::Instagram::User - Instagram User Object
version 0.009
my $me = $instagram->user; my $other = $instagra->user(12345); printf "My username is %s and I follow %d other users.\n", $me->username, $me->follows; printf "The other user full name is %s", $other->full_name;
See http://instagr.am/developer/endpoints/users/ and http://instagram.com/developer/endpoints/relationships/.
Returns user id.
Returns user username.
Returns user full name.
Returns user biography text.
Returns user website.
Returns user profile picture url.
Returns user total media.
Returns user total follows.
Returns user total followers.
my $medias = $user->feed( count => 5 ); print $_->caption . $/ for @$medias;
Returns a list of API::Instagram::Media objects of the authenticated user feed.
Accepts count, min_id and max_id as parameters.
count
min_id
max_id
my $medias = $user->liked_media( count => 5 ); print $_->caption . $/ for @$medias;
Returns a list of API::Instagram::Media objects of medias liked by the authenticated user.
Accepts count and max_like_id as parameters.
max_like_id
my $requested_by = $user->get_requested_by( count => 5 ); print $_->username . $/ for @$requested_by;
Returns a list of API::Instagram::User objects of users who requested this user's permission to follow.
Accepts count as parameter.
my $follows = $user->get_follows( count => 5 ); print $_->username . $/ for @$follows;
Returns a list of API::Instagram::User objects of users this user follows.
my $followers = $user->get_followers( count => 5 ); print $_->username . $/ for @$followers;
Returns a list of API::Instagram::User objects of users this user is followed by.
my $medias = $user->recent_medias( count => 5 ); print $_->caption . $/ for @$medias;
Returns a list of API::Instagram::Media objects of user's recent medias.
Accepts count, min_timestamp, min_id, max_id and max_timestamp as parameters.
min_timestamp
max_timestamp
Gabriel Vieira <gabriel.vieira@gmail.com>
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.
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.