WebService::EchoNest - A simple interface to the EchoNest API
my $echonest = WebService::EchoNest->new( api_key => 'XXX', ); my $data = $echonest->request('artist/search', name => 'Radiohead', bucket => ['biographies'], limit => 'true' );
The module provides a simple interface to the EchoNest API. To use this module, you must first sign up at http://developer.echonest.com/ to receive an API key.
You can then make requests on the API. You pass in a method name and hash of paramters, and a data structure mirroring the response is returned.
This module confesses if there is an error.
This makes a request:
my $data = $echonest->request('artist/search', name => 'Black Moth Super Rainbow', bucket => ['images'], limit => 'true' );
If you want to integrate this module into another HTTP framework, this method will create an HTTP::Request object:
my $http_request = $echonest->create_http_request('artist/search', name => 'Black Moth Super Rainbow', bucket => ['images'], limit => 'true' );
Nick Langridge <nickl@cpan.org>
This module was based on Net::LastFM by Leon Brocard.
Copyright (C) 2013 Nick Langridge
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install WebService::EchoNest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::EchoNest
CPAN shell
perl -MCPAN -e shell install WebService::EchoNest
For more information on module installation, please visit the detailed CPAN module installation guide.