NAME
WebService::LastFM::TrackInfo - Access to the track.getInfo slice of the LastFM API
VERSION
version 0.0101
SYNOPSIS
use WebService::LastFM::TrackInfo;
my $w = WebService::LastFM::TrackInfo->new(api_key => 'abcdef123456');
my $r = $w->fetch(
artist => 'Led Zeppelin',
track => 'Kashmir',
);
print Dumper $r; # Do something cool with the result!
DESCRIPTION
WebService::LastFM::TrackInfo
provides access to the https://www.last.fm/api/show/track.getInfo API slice.
ATTRIBUTES
api_key
Your required, last.fm API authorization key.
Default: undef
method
The required, last.fm API method string.
Default: track.getInfo
format
The last.fm API response format ("xml" or "json")
Default: json
base
The base URL.
Default: http://ws.audioscrobbler.com
version
The API version.
Default: 2.0
ua
The user agent.
Default: Mojo::UserAgent->new
METHODS
new
$w = WebService::LastFM::TrackInfo->new(api_key => $api_key);
Create a new WebService::LastFM::TrackInfo
object with your required api_key argument.
fetch
$r = $w->fetch(artist => $artist, track => $track);
Fetch the results given the required artist and track arguments.
SEE ALSO
The t/* tests
The eg/* program(s)
https://www.last.fm/api/show/track.getInfo
Net::LastFMAPI - Contains this functionality I guess? Broken for me...
AUTHOR
Gene Boggs <gene@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2022 by Gene Boggs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.