WebService::LastFM::Session - Session class of WebService::LastFM


WebService-LastFM documentation Contained in the WebService-LastFM distribution.

Index


Code Index:

NAME

Top

WebService::LastFM::Session - Session class of WebService::LastFM

SYNOPSIS

Top

  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;

DESCRIPTION

Top

WebService::LastFM::Session is the class for WebService::LastFM sessions.

CAVEAT

Top

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.

METHODS

Top

session()
  $stream_info = $lastfm->get_session;
  $session_key = $stream_info->session();

Returns the session key for the current session object.

SEE ALSO

Top

* Last.FM

http://www.last.fm/

* Last.FM Stream API documentation

http://www.audioscrobbler.com/development/lastfm-ws.php

* LWP::UserAgent

AUTHOR

Top

Christian Brink, <grep_pdx@gmail.com>

COPYRIGHT AND LICENSE

Top


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__