| WebService-Audioscrobbler documentation | view source | Contained in the WebService-Audioscrobbler distribution. |
WebService::Audioscrobbler::Track - An object-oriented interface to the Audioscrobbler WebService API
This module implements an object oriented abstraction of a track within the Audioscrobbler database.
use WebService::Audioscrobbler::Track;
my $ws = WebService::Audioscrobbler->new;
# get a track object for the track titled 'bar' by 'foo'
my $track = $ws->track('foo', 'bar');
# retrieves the track's tags
my @tags = $track->tags;
# prints url for viewing aditional tag info
print $track->url;
# prints the tag's artist name
print $track->artist->name;
This module inherits from WebService::Audioscrobbler::Base.
artistThe track's performing artist.
name
=head2 titleThe name (title) of a given track.
mbidMusicBrainz ID as provided by the Audioscrobbler database.
urlURL for aditional info about the track.
new($artist, $title, $data_fetcher)new(\%fields)Creates a new object using either the given $artist and $title or the
\%fields hashref. The data fetcher object is a mandatory parameter and must
be provided either as the second parameter or inside the \%fields hashref.
tagsresource_pathReturns the URL from which other URLs used for fetching track info will be derived from.
Nilson Santos Figueiredo Júnior, <nilsonsfj at cpan.org>
Copyright 2006-2007 Nilson Santos Figueiredo Júnior, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| WebService-Audioscrobbler documentation | view source | Contained in the WebService-Audioscrobbler distribution. |