{-# LANGUAGE TemplateHaskell #-} -- | Library API module {-# OPTIONS_HADDOCK prune #-} module Network.Lastfm.JSON.Library ( addAlbum, addArtist, addTrack, getAlbums, getArtists, getTracks , removeAlbum, removeArtist, removeScrobble, removeTrack ) where import Network.Lastfm import qualified Network.Lastfm.API.Library as API $(json ["addAlbum", "addArtist", "addTrack", "getAlbums", "getArtists", "getTracks", "removeAlbum", "removeArtist", "removeScrobble", "removeTrack"]) -- | Add an album or collection of albums to a user's Last.fm library. -- -- More: addAlbum ∷ Artist → Album → APIKey → SessionKey → Secret → Lastfm Response -- | Add an artist to a user's Last.fm library. -- -- More: addArtist ∷ Artist → APIKey → SessionKey → Secret → Lastfm Response -- | Add a track to a user's Last.fm library. -- -- More: addTrack ∷ Artist → Track → APIKey → SessionKey → Secret → Lastfm Response -- | A paginated list of all the albums in a user's library, with play counts and tag counts. -- -- More: getAlbums ∷ User → Maybe Artist → Maybe Page → Maybe Limit → APIKey → Lastfm Response -- | A paginated list of all the artists in a user's library, with play counts and tag counts. -- -- More: getArtists ∷ User → Maybe Page → Maybe Limit → APIKey → Lastfm Response -- | A paginated list of all the tracks in a user's library, with play counts and tag counts. -- -- More: getTracks ∷ User → Maybe Artist → Maybe Album → Maybe Page → Maybe Limit → APIKey → Lastfm Response -- | Remove an album from a user's Last.fm library. -- -- More: removeAlbum ∷ Artist → Album → APIKey → SessionKey → Secret → Lastfm Response -- | Remove an artist from a user's Last.fm library. -- -- More: removeArtist ∷ Artist → APIKey → SessionKey → Secret → Lastfm Response -- | Remove a scrobble from a user's Last.fm library. -- -- More: removeScrobble ∷ Artist → Track → Timestamp → APIKey → SessionKey → Secret → Lastfm Response -- | Remove a track from a user's Last.fm library. -- -- More: removeTrack ∷ Artist → Track → APIKey → SessionKey → Secret → Lastfm Response