WebService::LastFMSimple interface to Last.FM Web service API | |
Download |
WebService::LastFM Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Christian Brink
- Publisher web site:
- http://search.cpan.org/~cbrink/
WebService::LastFM Tags
WebService::LastFM Description
Simple interface to Last.FM Web service API WebService::LastFM is a Perl module that provides you a simple interface to Last.FM Web service API. It currently supports Last.FM Stream API 1.2.SYNOPSIS use WebService::LastFM; my $lastfm = WebService::LastFM->new( username => $config{username}, password => $config{password}, ); my $stream_info = $lastfm->get_session || die "Can't get Session\n"; my $session_key = $stream_info->session; $lastfm->change_tag( 'ska+punk' ); while (1) { my $playlist = $lastfm->get_new_playlist(); while ( my $track = $playlist->get_next_track() ) { print "Playing '".$track->title."' by ".$track->creator."\n"; my @cmd = ( 'mpg123' , $track->location() ); system( @cmd ); } } Requirements: · Perl
WebService::LastFM Related Software