LWP::UserAgent::iTMS_Client is a libwww-perl client for Apple iTunes music store.
SYNOPSIS
use LWP::UserAgent::iTMS_Client;
# search the Store
my $ua = LWP::UserAgent::iTMS_Client->new;
my $listings = $ua->search( song => 'apples' );
foreach my $song (@{$listings}) { print $song->{songName} }
$listings = $ua->search(artist => 'Vangelis', song => 'long',
genre => 'Electronic');
foreach my $a (@{$results2}) {
foreach (sort keys %$a) { print "$_ => ", $a->{$_}, "n" }
}
# get my authorization keys
my $ua = new LWP::UserAgent::iTMS_Client(
account_type => 'apple',
user_id => 'name@email.org',
password => 'password',
);
$ua->retrieve_keys_from_iTMS;
This perl module implements a user agent which can interact with the Apple iTunes Music Store (iTMS). For example, this module could allow a perl program that would automatically get samples of new albums by a particular artist, or buy everything on a Top Ten list weekly.
LWP::UserAgent::iTMS_Client is a sub-class of LWP::UserAgent and implements the methods of UserAgent, but does so using Apple's officially undocumented protocols. Because these protocols change with revisions to iTunes, the modules may occasionally lag Apple's changes until this module, too, is updated.
Product's homepage
Requirements:
· Perl
What's New in This Release: [ read full changelog ]
· some updates to follow iTMS changes for Music Store xml data and searches, for example using itemId instead of songID