WWW::Deezer - Perl interface to Deezer API
use WWW::Deezer; my $deezer = WWW::Deezer->new(); my $rs1 = $deezer->search ('Spinal Tap'); my $rs2 = $deezer->search ({ q => 'Antonio Vivaldi Concerto No. 4', order => 'RATING_DESC' }); my $rs3 = $deezer->search ({ q => { artist => 'Metallica', album => 'Garage Inc.' } }); while (my $record = $rs1->next) { $album_obj = $record->album; $artist = $record->artist; $name = $artist->name; warn ("$name has a radio channel!") if $artist->radio; $fans_count = $artist->nb_fan; } my $top_record = $rs2->first; warn $top_record->id;
Module allows to interact with Deezer server via it's official API. Description to be added soon.
None by default.
Oficial Deezer API documentation: http://developers.deezer.com/api
Michael Katasonov, <kabanoid@cpan.org>
Copyright (C) 2013 by Mike Katasonov
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.
To install WWW::Deezer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Deezer
CPAN shell
perl -MCPAN -e shell install WWW::Deezer
For more information on module installation, please visit the detailed CPAN module installation guide.