Net::iTMS::Search - Represents a simple search of the iTunes Music Store
use Net::iTMS::Search; my $search = Net::iTMS::Search->new($iTMS, $query); for my $album ($search->albums) { print $album->title, " by ", $album->artist->name, "\n"; }
Net::iTMS::Search represents a search of the iTMS and encapsulates the associated data. PLEASE NOTE: This simple search is currently broken due to unresolvable changes in the iTMS. Please use Net::iTMS::Search::Advanced, which works.
The first argument must be an instance of Net::iTMS, the second a query string.
Returns a blessed hashref (object) for Net::iTMS::Search.
Returns the query string the search is for.
Returns an array or arrayref (depending on context) of Net::iTMS::Song objects for the songs found.
Returns an array or arrayref (depending on context) of Net::iTMS::Album objects for the albums found.
NB: Due to an apparent limitation of the simple search in the iTMS, the maximum number of albums returned will be four.
Copyright 2004, Thomas R. Sibley.
You may use, modify, and distribute this package under the same terms as Perl itself.
Thomas R. Sibley, http://zulutango.org:82/
Net::iTMS, Net::iTMS::Song, Net::iTMS::Artist
To install Net::iTMS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::iTMS
CPAN shell
perl -MCPAN -e shell install Net::iTMS
For more information on module installation, please visit the detailed CPAN module installation guide.