| WebService-LastFM documentation | Contained in the WebService-LastFM distribution. |
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.
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.
| WebService-LastFM documentation | Contained in the WebService-LastFM distribution. |
package WebService::LastFM::Session; use strict; use warnings; use base qw(Class::Accessor); our $VERSION = '0.07'; __PACKAGE__->mk_accessors( qw( session ) ); sub new { my ( $class, $args ) = @_; bless $args, $class; } 1; __END__