Pikeo::API::User - Abstraction of a pikeo user/person
use Pikeo::API; use Pikeo::API::User; # create an API object to maintain you session # trough out the diferent calls my $api = Pikeo::API->new({api_secret=>'asd', api_key=>'asdas'}); # Get a user by id... my $user1 = Pikeo::API::User->new({ api => $api, id=>1 }); # .. or get a user by username my $user2 = Pikeo::API::User->new({ api => $api, username=>'foo' }); #get the public photos my $photos = $user2->getPublicPhotos();
Returns a Pikeo::API::User object.
Required args are:
api
Pikeo::API object
username or id
Id or username of the user.
Return a list of Pikeo::API::Photo owned by the user and marked as public.
Return a list of Pikeo::API::Photo owned by contacts of the user and marked as public
Return a list of Pikeo::API::Photo containing all the photos of the user.
Return a list of Pikeo::API::Album owned by the user
Returns the user username
Returns the user profile url
Returns the user avatar url
Returns the user location
Returns the user id
To install Pikeo::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pikeo::API
CPAN shell
perl -MCPAN -e shell install Pikeo::API
For more information on module installation, please visit the detailed CPAN module installation guide.