Pikeo::API::Album - Abstraction of a pikeo photo album
use Pikeo::API; use Pikeo::API::User; use Pikeo::API::Album; # 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 $user = Pikeo::API::User->new({ api => $api, id=>1 }); # get the albums for this user my $albums = $user->getAlbumsList; # get one album photos my $album = $albums->[0]; my $photos = $album->getPhotos(); # .. or get a album by id my $other_album = Pikeo::API::Album->new({ api => $api, id=>999 });
Returns a Pikeo::API::User object.
Required args are:
api
Pikeo::API object
Optional args are:
from_xml
XML::LibXML node containing the album details
id
id of the album
Pikeo::API::User that owns the album
Returns the album id
Return a list of Pikeo::API::Photo with all the photos in the album
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.