NAME

Net::Spotify::Lookup - Perl interface to the Spotify Metadata API

VERSION

Version 0.01

SYNOPSIS

use Net::Spotify::Lookup;

my $lookup = Net::Spotify::Lookup->new();

# lookup the artist and get detailed information
# about all the related albums
my $response = $lookup->make_request(
    uri => 'spotify:artist:4YrKBkKSVeqDamzBPWVnSJ',
    extras => 'albumdetail',
);

DESCRIPTION

This module implements the interface to the lookup service of the Spotify Metadata API. It inherits most of the methods from Net::Spotify::Service.

http://developer.spotify.com/en/metadata-api/lookup/

METHODS

format_request

Builds the request used by make_request(). The URI format is: [base_url]/lookup/[version]/?uri=[spotify_uri]&extras=[extras] Ie. http://ws.spotify.com/lookup/1/?uri=spotify:artist:4YrKBkKSVeqDamzBPWVnSJ&extras=albumdetail

Returns an HTTP::Request object.

Parameters

Parameters are passed as a hash from make_request().

uri

Represents the Spotify URI to lookup. Mandatory. Ie. spotify:artist:4YrKBkKSVeqDamzBPWVnSJ

extras

A comma-separated list of words that defines the detail level expected in the response. Optional. Ie. albumdetail

SEE ALSO

Net::Spotify, Net::Spotify::Service, Net::Spotify::Search

AUTHOR

Edoardo Sabadelli, <edoardo at cpan.org>

BUGS

Please report any bugs or feature requests to bug-net-spotify at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Spotify. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Net::Spotify

You can also look for information at:

ACKNOWLEDGEMENTS

This product uses a SPOTIFY API but is not endorsed, certified or otherwise approved in any way by Spotify. Spotify is the registered trade mark of the Spotify Group.

COPYRIGHT & LICENSE

Copyright 2009 Edoardo Sabadelli, all rights reserved.

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