Net::D...:Client(3pm)

πŸ“¦
version 0.26 Β· 2 versions
  • 0.26 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.26 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Net::DPAP::Client(3pm) πŸ’–

okay bestie, pull up a chair, because today we're talking about the Net::DPAP::Client page from the User Contributed Perl Documentation β€” and yes, it's giving iconic Perl module energy. πŸ¦‹


✨ NAME ✨

Net::DPAP::Client β€” connect to iPhoto shares (DPAP). that's the whole vibe. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the tea, literally copy-paste this and you're off:

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;
  }
}

look at you go, browsing albums AND images in one little loop. main character behavior fr. πŸ‘‘


🌸 DESCRIPTION 🌸

so this module is a whole DPAP client. and what is DPAP, you ask? it's the Digital Photo Access Protocol β€” the exact protocol Apple iPhoto uses to share photos around. no cap. πŸ“

that means you get to:

  • browse shared albums πŸ–ΌοΈ
  • download thumbnail versions of shared photos
  • download hires versions of shared photos

it's giving "your photos, but make it networked." 🌈

πŸ’€ real talk though: it currently doesn't support password-protected shares. so if your share has a password on it, this module is just gonna stand there like πŸ™ˆ. that's the situation, no cap.

πŸ’… METHODS πŸ’…

new

the constructor, aka where every beautiful friendship begins:

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

make the client, then tell it whose house you're visiting. iconic. ✨

connect

connect to the hostname:

my @albums = $client->connect;

that's it. that's the move. it hands you back your albums and you go absolutely feral browsing them. πŸ”₯


πŸ‘€ SEE ALSO πŸ‘€

go read these next, bestie, they're the supporting cast:

  • Net::DPAP::Client::Album
  • Net::DPAP::Client::Image

🫢 AUTHOR 🫢

Leon Brocard <acme@astray.com> β€” thank you for your service, king. πŸ‘‘


Copyright (C) 2004-6, Leon Brocard

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.

(translation: it's free, go wild, just keep the same terms as Perl itself. periodt. πŸ’œ)


and that's the whole page, babes β€” this one's from perl v5.34.0, dated 2022-06-16, straight outta the User Contributed Perl Documentation. mwah. πŸ’‹πŸŽ€

πŸ“¦ where this page comes from