WebService::LastFM::Session - Session class of WebService::LastFM
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;
WebService::LastFM::Session is the class for WebService::LastFM sessions.
This is NOT A BACKWARDS COMPATIBLE update. LastFM has changed their API enough to warrant an interface change. The stream_url() accessor has been removed, since it is no longer accessable.
$stream_info = $lastfm->get_session; $session_key = $stream_info->session();
Returns the session key for the current session object.
Last.FM
http://www.last.fm/
Last.FM Stream API documentation
http://www.audioscrobbler.com/development/lastfm-ws.php
LWP::UserAgent
Christian Brink, <grep_pdx@gmail.com>
Copyright (C) 2008 - 2009 by Christian Brink Copyright (C) 2005 - 2008 by Kentaro Kuribayashi
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::LastFM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::LastFM
CPAN shell
perl -MCPAN -e shell install WebService::LastFM
For more information on module installation, please visit the detailed CPAN module installation guide.