
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:
Pikeo::API object
Optional args are:
XML::LibXML node containing the album details
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