logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::DPAP::Client - Connect to iPhoto shares (DPAP)

Author

       Leon Brocard <acme@astray.com>

Description

       This module provides a DPAP client. DPAP is the Digital Photo Access Protocol and is the protocol that
       Apple iPhoto uses to share photos.  This allows you to browse shared albums, and download thumbnail and
       hires versions of shared photos.

       It currently doesn't support password-protected shares.

Methods

new
       The constructor:

         my $client = Net::DPAP::Client->new;
         $client->hostname($hostname);

   connect
       Connect to the hostname:

         my @albums = $client->connect;

Name

       Net::DPAP::Client - Connect to iPhoto shares (DPAP)

See Also

       Net::DPAP::Client::Album, Net::DPAP::Client::Image.

Synopsis

         use Net::DPAP::Client;
         my $client = Net::DPAP::Client->new;
         $client->hostname($hostname);
         my @albums = $client->connect;

         foreach my $album (@albums) {
           print $album->name, "\n";
           foreach my $image (@{$album->images}) {
             print "  ", $image->name, "\n";
             my $thumbnail = $image->thumbnail;
             my $hires = $image->hires;
           }
         }

See Also