Giter Site home page Giter Site logo

net-lastfm's Introduction

NAME
    Net::LastFM - A simple interface to the Last.fm API

SYNOPSIS
      my $lastfm = Net::LastFM->new(
          api_key    => 'XXX',
          api_secret => 'YYY',
      );
      my $data = $lastfm->request_signed(
          method => 'user.getRecentTracks',
          user   => 'lglb',
      );

DESCRIPTION
    The module provides a simple interface to the Last.fm API. To use this
    module, you must first sign up at <http://www.last.fm/api> to receive an
    API key and secret.

    You can then make requests on the API - most of the requests are signed.
    You pass in a hash of paramters and a data structure mirroring the
    response is returned.

    This module confesses if there is an error.

METHODS
  request
    This makes an unsigned request:

      my $data = $lastfm->request( method => 'auth.gettoken' );

  request_signed
    This makes a signed request:

      my $data = $lastfm->request_signed(
          method => 'user.getRecentTracks',
          user   => 'lglb',
      );

  create_http_request
    If you want to integrate this module into another HTTP framework, this
    method will simple create an unsigned HTTP::Request object:

      my $http_request = $lastfm->create_http_request(
          method => 'auth.gettoken'
      );

  create_http_request_signed
    If you want to integrate this module into another HTTP framework, this
    method will simple create a signed HTTP::Request object:

      my $http_request = $lastfm->create_http_request_signed(
          method => 'user.getRecentTracks',
          user   => 'lglb',
      );

AUTHOR
    Leon Brocard <[email protected]>

COPYRIGHT
    Copyright (C) 2008-9, Leon Brocard.

LICENSE
    This module is free software; you can redistribute it or modify it under
    the same terms as Perl itself.

net-lastfm's People

Contributors

acme avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.