liblastfm-0.5.1: Lastfm API interface

Safe HaskellNone
LanguageHaskell2010

Network.Lastfm.Library

Description

Lastfm library API

This module is intended to be imported qualified:

import qualified Network.Lastfm.Library as Library

Synopsis

Documentation

addAlbum :: NonEmpty (Request f LibraryAlbum) -> Request f (APIKey -> SessionKey -> Sign) Source

Add an album or collection of albums to a user's Last.fm library

http://www.last.fm/api/show/library.addAlbum

albumItem :: Request f (Artist -> Album -> LibraryAlbum) Source

What artist to add to library?

artistItem :: Request f (Artist -> LibraryArtist) Source

What album to add to library?

addTrack :: Request f (Artist -> Track -> APIKey -> SessionKey -> Sign) Source

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

http://www.last.fm/api/show/library.addTrack

getAlbums :: Request f (User -> APIKey -> Ready) Source

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

Optional: artist, limit, page

http://www.last.fm/api/show/library.getAlbums

getArtists :: Request f (User -> APIKey -> Ready) Source

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

Optional: limit, page

http://www.last.fm/api/show/library.getArtists

getTracks :: Request f (User -> APIKey -> Ready) Source

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

Optional: artist, album, page, limit

http://www.last.fm/api/show/library.getTracks

removeAlbum :: Request f (Artist -> Album -> APIKey -> SessionKey -> Sign) Source

Remove an album from a user's Last.fm library

http://www.last.fm/api/show/library.removeAlbum

removeArtist :: Request f (Artist -> APIKey -> SessionKey -> Sign) Source

Remove an artist from a user's Last.fm library

http://www.last.fm/api/show/library.removeArtist

removeTrack :: Request f (Artist -> Track -> APIKey -> SessionKey -> Sign) Source

Remove a track from a user's Last.fm library

http://www.last.fm/api/show/library.removeTrack