WebService::Spotify - A simple Perl interface to the Spotify Web API
my $spotify = WebService::Spotify->new; my $results = $spotify->search('weezer', limit => 20); say $_->{name} for @{$results->{tracks}->{items}};
More examples can be found in the eg/ directory.
See Method::Signatures for details of the parameter spec used below.
Refer to the Spotify API documentation for details on the methods and parameters.
Methods that take item IDs (such as the track, album and artist methods) accept URN, URL or simple ID types. The following 3 ids are all acceptable IDs:
http://open.spotify.com/track/3HfB5hBU0dmBt8T0iCmH42 spotify:track:3HfB5hBU0dmBt8T0iCmH42 3HfB5hBU0dmBt8T0iCmH42
The following methods are supported:
returns a single album given the album's ID, URN or URL
Get Spotify catalog information about an album's tracks
returns a list of albums given the album IDs, URNs, or URLs
returns a single artist given the artist's ID, URN or URL
Get Spotify catalog information about an artist’s albums
Get Spotify catalog information about an artist’s top 10 tracks by country.
returns a list of artists given the artist IDs, URNs, or URLs
returns info about me
returns the next result given a result
returns the previous result given a result
searches for an item
returns a single track given the track's ID, URN or URL
returns a list of tracks given the track IDs, URNs, or URLs
Gets basic profile information about a Spotify User
Gets playlist of a user
Adds tracks to a playlist
Creates a playlist for a user
Gets playlists of a user
Nick Langridge <nickl@cpan.org>
This module was ported from Spotipy, a Python wrapper for the Spotify Web API
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
WebService::EchoNest - wrapper for the EchoNest API which has some integration with the Spotify Web API
Net::Spotify - wrapper for the old Spotify metadata API
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'artist’s'. Assuming UTF-8
To install WebService::Spotify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Spotify
CPAN shell
perl -MCPAN -e shell install WebService::Spotify
For more information on module installation, please visit the detailed CPAN module installation guide.