Class Library

Description

Provides different methods to query user music library information.

Located in /src/Library.php (line 9)


	
			
Method Summary
static void addAlbum (string $artist, string $album, Session $session)
static void addArtist (string $artist, Session $session)
static void addTrack (string $artist, string $track, Session $session)
static PaginatedResult getAlbums (string $user, [integer $limit = null], [integer $page = null])
static PaginatedResult getArtists (string $user, [integer $limit = null], [integer $page = null])
static PaginatedResult getTracks (string $user, integer $limit, integer $page)
Methods
static method addAlbum (line 20)

Add an album to a user's last.fm library.

  • throws: Error
  • access: public
static void addAlbum (string $artist, string $album, Session $session)
  • string $artist: The artist that composed the album. (Required)
  • string $album: The album name you wish to add. (Required)
  • Session $session: A session obtained by getSession or getMobileSession. (Required)
static method addArtist (line 36)

Add an artist to a user's last.fm library.

  • throws: Error
  • access: public
static void addArtist (string $artist, Session $session)
  • string $artist: The artist name you wish to add. (Required)
  • Session $session: A session obtained by getSession or getMobileSession. (Required)
static method addTrack (line 52)

Add a track to a user's last.fm library.

  • throws: Error
  • access: public
static void addTrack (string $artist, string $track, Session $session)
  • string $artist: The artist that composed the track. (Required)
  • string $track: The track name you wish to add. (Required)
  • Session $session: A session obtained by getSession or getMobileSession. (Required)
static method getAlbums (line 70)

A paginated list of all the albums in a user's library, with play counts and tag counts.

  • return: A PaginatedResult object.
  • throws: Error
  • access: public
static PaginatedResult getAlbums (string $user, [integer $limit = null], [integer $page = null])
  • string $user: The user whose library you want to fetch. (Required)
  • integer $limit: Limit the amount of albums returned (maximum/default is 50). (Optional)
  • integer $page: The page number you wish to scan to. (Optional)
static method getArtists (line 104)

A paginated list of all the artists in a user's library, with play counts and tag counts.

  • return: A PaginatedResult object.
  • throws: Error
  • access: public
static PaginatedResult getArtists (string $user, [integer $limit = null], [integer $page = null])
  • string $user: The user whose library you want to fetch. (Required)
  • integer $limit: Limit the amount of artists returned (maximum/default is 50). (Optional)
  • integer $page: The page number you wish to scan to. (Optional)
static method getTracks (line 138)

A paginated list of all the tracks in a user's library, with play counts and tag counts.

  • return: A PaginatedResult object.
  • throws: Error
  • access: public
static PaginatedResult getTracks (string $user, integer $limit, integer $page)
  • string $user: The user whose library you want to fetch. (Required)
  • integer $limit: Limit the amount of tracks returned (maximum/default is 50). (Optional)
  • integer $page: The page number you wish to scan to. (Optional)

Documentation generated on Mon, 22 Dec 2008 16:57:38 +0100 by phpDocumentor 1.4.1