packages feed

liblastfm 0.0.2.1 → 0.0.2.2

raw patch · 16 files changed

+134/−134 lines, 16 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Network.Lastfm.API.Auth: getSession :: APIKey -> Token -> Lastfm Response
+ Network.Lastfm.API.Auth: getSession :: APIKey -> Token -> Secret -> Lastfm Response

Files

Network/Lastfm/API/Album.hs view
@@ -10,7 +10,7 @@  -- | Tag an album using a list of user supplied tags. ----- More: <http://www.lastfm.ru/api/show/album.addTags>+-- More: <http://www.last.fm/api/show/album.addTags> addTags :: (Artist, Album) -> [Tag] -> APIKey -> SessionKey -> Secret -> Lastfm Response addTags (artist, album) tags apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "album.addTags")@@ -23,7 +23,7 @@  -- | Get a list of Buy Links for a particular Album. It is required that you supply either the artist and track params or the mbid param. ----- More: <http://www.lastfm.ru/api/show/album.getBuylinks>+-- More: <http://www.last.fm/api/show/album.getBuylinks> getBuyLinks :: Either (Artist, Album) Mbid -> Maybe Autocorrect -> Country -> APIKey -> Lastfm Response getBuyLinks a autocorrect country apiKey = callAPI $   target a ++@@ -35,7 +35,7 @@  -- | Get the metadata for an album on Last.fm using the album name or a musicbrainz id. See playlist.fetch on how to get the album playlist. ----- More: <http://www.lastfm.ru/api/show/album.getInfo>+-- More: <http://www.last.fm/api/show/album.getInfo> getInfo :: Either (Artist, Album) Mbid -> Maybe Autocorrect -> Maybe Language -> Maybe Username -> APIKey -> Lastfm Response getInfo a autocorrect lang username apiKey = callAPI $   target a ++@@ -48,7 +48,7 @@  -- | Get shouts for this album. ----- More: <http://www.lastfm.ru/api/show/album.getShouts>+-- More: <http://www.last.fm/api/show/album.getShouts> getShouts :: Either (Artist, Album) Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getShouts a autocorrect page limit apiKey = callAPI $   target a ++@@ -61,7 +61,7 @@  -- | Get the tags applied by an individual user to an album on Last.fm. ----- More: <http://www.lastfm.ru/api/show/album.getTags>+-- More: <http://www.last.fm/api/show/album.getTags> getTags :: Either (Artist, Album) Mbid -> Maybe Autocorrect -> Either User (SessionKey, Secret) -> APIKey -> Lastfm Response getTags a autocorrect b apiKey = case b of   Left user -> callAPI $ target a ++ [(#) user] ++ args@@ -74,7 +74,7 @@  -- | Get the top tags for an album on Last.fm, ordered by popularity. ----- More: <http://www.lastfm.ru/api/show/album.getTopTags>+-- More: <http://www.last.fm/api/show/album.getTopTags> getTopTags :: Either (Artist, Album) Mbid -> Maybe Autocorrect -> APIKey -> Lastfm Response getTopTags a autocorrect apiKey = callAPI $   target a ++@@ -85,7 +85,7 @@  -- | Remove a user's tag from an album. ----- More: <http://www.lastfm.ru/api/show/album.removeTag>+-- More: <http://www.last.fm/api/show/album.removeTag> removeTag :: Artist -> Album -> Tag -> APIKey -> SessionKey -> Secret -> Lastfm Response removeTag artist album tag apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "album.removeTag")@@ -98,7 +98,7 @@  -- | Search for an album by name. Returns album matches sorted by relevance. ----- More: <http://www.lastfm.ru/api/show/album.search>+-- More: <http://www.last.fm/api/show/album.search> search :: Album -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response search album page limit apiKey = callAPI   [ (#) (Method "album.search")@@ -110,7 +110,7 @@  -- | Share an album with one or more Last.fm users or other friends. ----- More: <http://www.lastfm.ru/api/show/album.share>+-- More: <http://www.last.fm/api/show/album.share> share :: Artist -> Album -> Recipient -> Maybe Message -> Maybe Public -> APIKey -> SessionKey -> Secret -> Lastfm Response share artist album recipient message public apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "album.share")
Network/Lastfm/API/Artist.hs view
@@ -11,7 +11,7 @@  -- | Tag an album using a list of user supplied tags. ----- More: <http://www.lastfm.ru/api/show/artist.addTags>+-- More: <http://www.last.fm/api/show/artist.addTags> addTags :: Artist -> [Tag] -> APIKey -> SessionKey -> Secret -> Lastfm Response addTags artist tags apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "artist.addTags")@@ -23,7 +23,7 @@  -- | Use the last.fm corrections data to check whether the supplied artist has a correction to a canonical artist ----- More: <http://www.lastfm.ru/api/show/artist.getCorrection>+-- More: <http://www.last.fm/api/show/artist.getCorrection> getCorrection :: Artist -> APIKey -> Lastfm Response getCorrection artist apiKey = callAPI   [ (#) (Method "artist.getCorrection")@@ -33,7 +33,7 @@  -- | Get a list of upcoming events for this artist. ----- More: <http://www.lastfm.ru/api/show/artist.getEvents>+-- More: <http://www.last.fm/api/show/artist.getEvents> getEvents :: Either Artist Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> Maybe FestivalsOnly -> APIKey -> Lastfm Response getEvents a autocorrect page limit festivalsOnly apiKey = callAPI $   target a ++@@ -47,7 +47,7 @@  -- | Get Images for this artist in a variety of sizes. ----- More: <http://www.lastfm.ru/api/show/artist.getImages>+-- More: <http://www.last.fm/api/show/artist.getImages> getImages :: Either Artist Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> Maybe Order -> APIKey -> Lastfm Response getImages a autocorrect page limit order apiKey = callAPI $   target a ++@@ -61,7 +61,7 @@  -- | Get the metadata for an artist. Includes biography. ----- More: <http://www.lastfm.ru/api/show/artist.getInfo>+-- More: <http://www.last.fm/api/show/artist.getInfo> getInfo :: Either Artist Mbid -> Maybe Autocorrect -> Maybe Language -> Maybe Username -> APIKey -> Lastfm Response getInfo a autocorrect language username apiKey = callAPI $   target a ++@@ -74,7 +74,7 @@  -- | Get a paginated list of all the events this artist has played at in the past. ----- More: <http://www.lastfm.ru/api/show/artist.getPastEvents>+-- More: <http://www.last.fm/api/show/artist.getPastEvents> getPastEvents :: Either Artist Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getPastEvents a autocorrect page limit apiKey = callAPI $   target a ++@@ -87,7 +87,7 @@  -- | Get a podcast of free mp3s based on an artist. ----- More: <http://www.lastfm.ru/api/show/artist.getPodcast>+-- More: <http://www.last.fm/api/show/artist.getPodcast> getPodcast :: Either Artist Mbid -> Maybe Autocorrect -> APIKey -> Lastfm Response getPodcast a autocorrect apiKey = callAPI $   target a ++@@ -98,7 +98,7 @@  -- | Get shouts for this artist. Also available as an rss feed. ----- More: <http://www.lastfm.ru/api/show/artist.getShouts>+-- More: <http://www.last.fm/api/show/artist.getShouts> getShouts :: Either Artist Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getShouts a autocorrect page limit apiKey = callAPI $   target a ++@@ -111,7 +111,7 @@  -- | Get all the artists similar to this artist. ----- More: <http://www.lastfm.ru/api/show/artist.getSimilar>+-- More: <http://www.last.fm/api/show/artist.getSimilar> getSimilar :: Either Artist Mbid -> Maybe Autocorrect -> Maybe Limit -> APIKey -> Lastfm Response getSimilar a autocorrect limit apiKey = callAPI $   target a ++@@ -123,7 +123,7 @@  -- | Get the tags applied by an individual user to an artist on Last.fm. If accessed as an authenticated service /and/ you don't supply a user parameter then this service will return tags for the authenticated user. ----- More: <http://www.lastfm.ru/api/show/artist.getTags>+-- More: <http://www.last.fm/api/show/artist.getTags> getTags :: Either Artist Mbid -> Maybe Autocorrect -> Either User (SessionKey, Secret) -> APIKey -> Lastfm Response getTags a autocorrect b apiKey = case b of   Left user -> callAPI $ target a ++ [(#) user] ++ args@@ -136,7 +136,7 @@  -- | Get the top albums for an artist on Last.fm, ordered by popularity. ----- More: <http://www.lastfm.ru/api/show/artist.getTopAlbums>+-- More: <http://www.last.fm/api/show/artist.getTopAlbums> getTopAlbums :: Either Artist Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopAlbums a autocorrect page limit apiKey = callAPI $   target a ++@@ -149,7 +149,7 @@  -- | Get the top fans for an artist on Last.fm, based on listening data. ----- More: <http://www.lastfm.ru/api/show/artist.getTopFans>+-- More: <http://www.last.fm/api/show/artist.getTopFans> getTopFans :: Either Artist Mbid -> Maybe Autocorrect -> APIKey -> Lastfm Response getTopFans a autocorrect apiKey = callAPI $   target a ++@@ -160,7 +160,7 @@  -- | Get the top tags for an artist on Last.fm, ordered by popularity. ----- More: <http://www.lastfm.ru/api/show/artist.getTopTags>+-- More: <http://www.last.fm/api/show/artist.getTopTags> getTopTags :: Either Artist Mbid -> Maybe Autocorrect -> APIKey -> Lastfm Response getTopTags a autocorrect apiKey = callAPI $   target a ++@@ -171,7 +171,7 @@  -- | Get the top tracks by an artist on Last.fm, ordered by popularity. ----- More: <http://www.lastfm.ru/api/show/artist.getTopTracks>+-- More: <http://www.last.fm/api/show/artist.getTopTracks> getTopTracks :: Either Artist Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopTracks a autocorrect page limit apiKey = callAPI $   target a ++@@ -184,7 +184,7 @@  -- | Remove a user's tag from an artist. ----- More: <http://www.lastfm.ru/api/show/artist.removeTag>+-- More: <http://www.last.fm/api/show/artist.removeTag> removeTag :: Artist -> Tag -> APIKey -> SessionKey -> Secret -> Lastfm Response removeTag artist tag apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "artist.removeTag")@@ -196,7 +196,7 @@  -- | Search for an artist by name. Returns artist matches sorted by relevance. ----- More: <http://www.lastfm.ru/api/show/artist.search>+-- More: <http://www.last.fm/api/show/artist.search> search :: Artist -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response search artist page limit apiKey = callAPI   [ (#) (Method "artist.search")@@ -208,7 +208,7 @@  -- | Share an artist with Last.fm users or other friends. ----- More: <http://www.lastfm.ru/api/show/artist.share>+-- More: <http://www.last.fm/api/show/artist.share> share :: Artist -> Recipient -> Maybe Message -> Maybe Public -> APIKey -> SessionKey -> Secret -> Lastfm Response share artist recipient message public apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "artist.share")@@ -222,7 +222,7 @@  -- | Shout in this artist's shoutbox. ----- More: <http://www.lastfm.ru/api/show/artist.shout>+-- More: <http://www.last.fm/api/show/artist.shout> shout :: Artist -> Message -> APIKey -> SessionKey -> Secret -> Lastfm Response shout artist message apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "artist.shout")
Network/Lastfm/API/Auth.hs view
@@ -9,7 +9,7 @@  -- | Create a web service session for a user. Used for authenticating a user when the password can be inputted by the user. Only suitable for standalone mobile devices. ----- More: <http://www.lastfm.ru/api/show/auth.getMobileSession>+-- More: <http://www.last.fm/api/show/auth.getMobileSession> getMobileSession :: Username -> APIKey -> AuthToken -> Lastfm Response getMobileSession username apiKey token = callAPI   [ (#) (Method "auth.getMobileSession")@@ -20,9 +20,9 @@  -- | Fetch a session key for a user. ----- More: <http://www.lastfm.ru/api/show/auth.getSession>-getSession :: APIKey -> Token -> Lastfm Response-getSession apiKey token = callAPI+-- More: <http://www.last.fm/api/show/auth.getSession>+getSession :: APIKey -> Token -> Secret -> Lastfm Response+getSession apiKey token secret = callAPIsigned secret   [ (#) (Method "auth.getSession")   , (#) apiKey   , (#) token@@ -30,7 +30,7 @@  -- | Fetch an unathorized request token for an API account. ----- More: <http://www.lastfm.ru/api/show/auth.getToken>+-- More: <http://www.last.fm/api/show/auth.getToken> getToken :: APIKey -> Lastfm Response getToken apiKey = callAPI   [ (#) (Method "auth.getToken")
Network/Lastfm/API/Chart.hs view
@@ -9,37 +9,37 @@  -- | Get the hyped artists chart. ----- More: <http://www.lastfm.ru/api/show/chart.getHypedArtists>+-- More: <http://www.last.fm/api/show/chart.getHypedArtists> getHypedArtists :: Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getHypedArtists = get "getHypedArtists"  -- | Get the hyped tracks chart. ----- More: <http://www.lastfm.ru/api/show/chart.getHypedTracks>+-- More: <http://www.last.fm/api/show/chart.getHypedTracks> getHypedTracks :: Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getHypedTracks = get "getHypedTracks"  -- | Get the most loved tracks chart. ----- More: <http://www.lastfm.ru/api/show/chart.getLovedTracks>+-- More: <http://www.last.fm/api/show/chart.getLovedTracks> getLovedTracks :: Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getLovedTracks = get "getLovedTracks"  -- | Get the top artists chart. ----- More: <http://www.lastfm.ru/api/show/chart.getTopArtists>+-- More: <http://www.last.fm/api/show/chart.getTopArtists> getTopArtists :: Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopArtists = get "getTopArtists"  -- | Get top tags chart. ----- More: <http://www.lastfm.ru/api/show/chart.getTopTags>+-- More: <http://www.last.fm/api/show/chart.getTopTags> getTopTags :: Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopTags = get "getTopTags"  -- | Get the top tracks chart. ----- More: <http://www.lastfm.ru/api/show/chart.getTopTracks>+-- More: <http://www.last.fm/api/show/chart.getTopTracks> getTopTracks :: Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopTracks = get "getTopTracks" 
Network/Lastfm/API/Event.hs view
@@ -8,7 +8,7 @@  -- | Set a user's attendance status for an event. ----- More: <http://www.lastfm.ru/api/show/event.attend>+-- More: <http://www.last.fm/api/show/event.attend> attend :: Event -> Status -> APIKey -> SessionKey -> Secret -> Lastfm Response attend event status apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "event.attend")@@ -20,7 +20,7 @@  -- | Get a list of attendees for an event. ----- More: <http://www.lastfm.ru/api/show/event.getAttendees>+-- More: <http://www.last.fm/api/show/event.getAttendees> getAttendees :: Event -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getAttendees event page limit apiKey = callAPI   [ (#) (Method "event.getAttendees")@@ -32,7 +32,7 @@  -- | Get the metadata for an event on Last.fm. Includes attendance and lineup information. ----- More: <http://www.lastfm.ru/api/show/event.getInfo>+-- More: <http://www.last.fm/api/show/event.getInfo> getInfo :: Event -> APIKey -> Lastfm Response getInfo event apiKey = callAPI   [ (#) (Method "event.getInfo")@@ -42,7 +42,7 @@  -- | Get shouts for this event. ----- More: <http://www.lastfm.ru/api/show/event.getShouts>+-- More: <http://www.last.fm/api/show/event.getShouts> getShouts :: Event -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getShouts event page limit apiKey = callAPI   [ (#) (Method "event.getShouts")@@ -54,7 +54,7 @@  -- | Share an event with one or more Last.fm users or other friends. ----- More: <http://www.lastfm.ru/api/show/event.share>+-- More: <http://www.last.fm/api/show/event.share> share :: Event -> Recipient -> Maybe Message -> Maybe Public -> APIKey -> SessionKey -> Secret -> Lastfm Response share event recipient message public apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "event.share")@@ -68,7 +68,7 @@  -- | Shout in this event's shoutbox. ----- More: <http://www.lastfm.ru/api/show/event.shout>+-- More: <http://www.last.fm/api/show/event.shout> shout :: Event -> Message -> APIKey -> SessionKey -> Secret -> Lastfm Response shout event message apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "event.shout")
Network/Lastfm/API/Geo.hs view
@@ -10,7 +10,7 @@  -- | Get all events in a specific location by country or city name. ----- More: <http://www.lastfm.ru/api/show/geo.getEvents>+-- More: <http://www.last.fm/api/show/geo.getEvents> getEvents :: Maybe Latitude           -> Maybe Longitude           -> Maybe Location@@ -32,43 +32,43 @@  -- | Get a chart of artists for a metro. ----- More: <http://www.lastfm.ru/api/show/geo.getMetroArtistChart>+-- More: <http://www.last.fm/api/show/geo.getMetroArtistChart> getMetroArtistChart :: Country -> Metro -> Maybe Start -> Maybe End -> APIKey -> Lastfm Response getMetroArtistChart = getMetroChart "geo.getMetroArtistChart"  -- | Get a chart of hyped (up and coming) artists for a metro. ----- More: <http://www.lastfm.ru/api/show/geo.getMetroHypeArtistChart>+-- More: <http://www.last.fm/api/show/geo.getMetroHypeArtistChart> getMetroHypeArtistChart :: Country -> Metro -> Maybe Start -> Maybe End -> APIKey -> Lastfm Response getMetroHypeArtistChart = getMetroChart "geo.getMetroHypeArtistChart"  -- | Get a chart of hyped (up and coming) tracks for a metro. ----- More: <http://www.lastfm.ru/api/show/geo.getMetroHypeTrackChart>+-- More: <http://www.last.fm/api/show/geo.getMetroHypeTrackChart> getMetroHypeTrackChart :: Country -> Metro -> Maybe Start -> Maybe End -> APIKey -> Lastfm Response getMetroHypeTrackChart = getMetroChart "geo.getMetroHypeTrackChart"  -- | Get a chart of tracks for a metro. ----- More: <http://www.lastfm.ru/api/show/geo.getMetroTrackChart>+-- More: <http://www.last.fm/api/show/geo.getMetroTrackChart> getMetroTrackChart :: Country -> Metro -> Maybe Start -> Maybe End -> APIKey -> Lastfm Response getMetroTrackChart = getMetroChart "geo.getMetroTrackChart"  -- | Get a chart of the artists which make that metro unique. ----- More: <http://www.lastfm.ru/api/show/geo.getMetroUniqueArtistChart>+-- More: <http://www.last.fm/api/show/geo.getMetroUniqueArtistChart> getMetroUniqueArtistChart :: Country -> Metro -> Maybe Start -> Maybe End -> APIKey -> Lastfm Response getMetroUniqueArtistChart = getMetroChart "geo.getMetroUniqueArtistChart"  -- | Get a chart of the tracks which make that metro unique. ----- More: <http://www.lastfm.ru/api/show/geo.getMetroUniqueTrackChart>+-- More: <http://www.last.fm/api/show/geo.getMetroUniqueTrackChart> getMetroUniqueTrackChart :: Country -> Metro -> Maybe Start -> Maybe End -> APIKey -> Lastfm Response getMetroUniqueTrackChart = getMetroChart "geo.getMetroUniqueTrackChart"  -- | Get a list of available chart periods for this metro, expressed as date ranges which can be sent to the chart services. ----- More: <http://www.lastfm.ru/api/show/geo.getMetroWeeklyChartlist>+-- More: <http://www.last.fm/api/show/geo.getMetroWeeklyChartlist> getMetroWeeklyChartlist :: Metro -> APIKey -> Lastfm Response getMetroWeeklyChartlist metro apiKey = callAPI   [ (#) (Method "geo.getMetroWeeklyChartlist")@@ -78,7 +78,7 @@  -- | Get a list of valid countries and metros for use in the other webservices. ----- More: <http://www.lastfm.ru/api/show/geo.getMetros>+-- More: <http://www.last.fm/api/show/geo.getMetros> getMetros :: Maybe Country -> APIKey -> Lastfm Response getMetros country apiKey = callAPI   [ (#) (Method "geo.getMetros")@@ -88,7 +88,7 @@  -- | Get the most popular artists on Last.fm by country. ----- More: <http://www.lastfm.ru/api/show/geo.getTopArtists>+-- More: <http://www.last.fm/api/show/geo.getTopArtists> getTopArtists :: Country -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopArtists country page limit apiKey = callAPI   [ (#) (Method "geo.getTopArtists")@@ -100,7 +100,7 @@  -- | Get the most popular tracks on Last.fm last week by country. ----- More: <http://www.lastfm.ru/api/show/geo.getTopTracks>+-- More: <http://www.last.fm/api/show/geo.getTopTracks> getTopTracks :: Country -> Maybe Location -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopTracks country location page limit apiKey = callAPI   [ (#) (Method "geo.getTopTracks")
Network/Lastfm/API/Group.hs view
@@ -8,7 +8,7 @@  -- | Get the hype list for a group. ----- More: <http://www.lastfm.ru/api/show/group.getHype>+-- More: <http://www.last.fm/api/show/group.getHype> getHype :: Group -> APIKey -> Lastfm Response getHype group apiKey = callAPI   [ (#) (Method "group.getHype")@@ -18,7 +18,7 @@  -- | Get a list of members for this group. ----- More: <http://www.lastfm.ru/api/show/group.getMembers>+-- More: <http://www.last.fm/api/show/group.getMembers> getMembers :: Group -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getMembers group page limit apiKey = callAPI   [ (#) (Method "group.getMembers")@@ -30,7 +30,7 @@  -- | Get an album chart for a group, for a given date range. If no date range is supplied, it will return the most recent album chart for this group. ----- More: <http://www.lastfm.ru/api/show/group.getWeeklyAlbumChart>+-- More: <http://www.last.fm/api/show/group.getWeeklyAlbumChart> getWeeklyChartList :: Group -> APIKey -> Lastfm Response getWeeklyChartList group apiKey = callAPI   [ (#) (Method "group.getWeeklyChartList")@@ -40,7 +40,7 @@  -- | Get an artist chart for a group, for a given date range. If no date range is supplied, it will return the most recent artist chart for this group. ----- More: <http://www.lastfm.ru/api/show/group.getWeeklyArtistChart>+-- More: <http://www.last.fm/api/show/group.getWeeklyArtistChart> getWeeklyAlbumChart :: Group -> Maybe From -> Maybe To -> APIKey -> Lastfm Response getWeeklyAlbumChart group from to apiKey = callAPI   [ (#) (Method "group.getWeeklyAlbumChart")@@ -52,7 +52,7 @@  -- | Get a list of available charts for this group, expressed as date ranges which can be sent to the chart services. ----- More: <http://www.lastfm.ru/api/show/group.getWeeklyChartList>+-- More: <http://www.last.fm/api/show/group.getWeeklyChartList> getWeeklyArtistChart :: Group -> Maybe From -> Maybe To -> APIKey -> Lastfm Response getWeeklyArtistChart group from to apiKey = callAPI   [ (#) (Method "group.getWeeklyArtistChart")@@ -65,7 +65,7 @@  -- | Get a track chart for a group, for a given date range. If no date range is supplied, it will return the most recent track chart for this group. ----- More: <http://www.lastfm.ru/api/show/group.getWeeklyTrackChart>+-- More: <http://www.last.fm/api/show/group.getWeeklyTrackChart> getWeeklyTrackChart :: Group -> Maybe From -> Maybe To -> APIKey -> Lastfm Response getWeeklyTrackChart group from to apiKey = callAPI   [ (#) (Method "group.getWeeklyTrackChart")
Network/Lastfm/API/Library.hs view
@@ -10,7 +10,7 @@  -- | Add an album or collection of albums to a user's Last.fm library. ----- More: <http://www.lastfm.ru/api/show/library.addAlbum>+-- More: <http://www.last.fm/api/show/library.addAlbum> addAlbum :: Artist -> Album -> APIKey -> SessionKey -> Secret -> Lastfm Response addAlbum artist album apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "library.addAlbum")@@ -22,7 +22,7 @@  -- | Add an artist to a user's Last.fm library. ----- More: <http://www.lastfm.ru/api/show/library.addArtist>+-- More: <http://www.last.fm/api/show/library.addArtist> addArtist :: Artist -> APIKey -> SessionKey -> Secret -> Lastfm Response addArtist artist apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "library.addArtist")@@ -33,7 +33,7 @@  -- | Add a track to a user's Last.fm library. ----- More: <http://www.lastfm.ru/api/show/library.addTrack>+-- More: <http://www.last.fm/api/show/library.addTrack> addTrack :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response addTrack artist track apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "library.addTrack")@@ -45,7 +45,7 @@  -- | A paginated list of all the albums in a user's library, with play counts and tag counts. ----- More: <http://www.lastfm.ru/api/show/library.getAlbums>+-- More: <http://www.last.fm/api/show/library.getAlbums> getAlbums :: User -> Maybe Artist -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getAlbums user artist page limit apiKey = callAPI   [ (#) (Method "library.getAlbums")@@ -58,7 +58,7 @@  -- | A paginated list of all the artists in a user's library, with play counts and tag counts. ----- More: <http://www.lastfm.ru/api/show/library.getArtists>+-- More: <http://www.last.fm/api/show/library.getArtists> getArtists :: User -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getArtists user page limit apiKey = callAPI   [ (#) (Method "library.getArtists")@@ -70,7 +70,7 @@  -- | A paginated list of all the tracks in a user's library, with play counts and tag counts. ----- More: <http://www.lastfm.ru/api/show/library.getTracks>+-- More: <http://www.last.fm/api/show/library.getTracks> getTracks :: User -> Maybe Artist -> Maybe Album -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTracks user artist album page limit apiKey = callAPI   [ (#) (Method "library.getTracks")@@ -84,7 +84,7 @@  -- | Remove an album from a user's Last.fm library. ----- More: <http://www.lastfm.ru/api/show/library.removeAlbum>+-- More: <http://www.last.fm/api/show/library.removeAlbum> removeAlbum :: Artist -> Album -> APIKey -> SessionKey -> Secret -> Lastfm Response removeAlbum artist album apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "library.removeAlbum")@@ -96,7 +96,7 @@  -- | Remove an artist from a user's Last.fm library. ----- More: <http://www.lastfm.ru/api/show/library.removeArtist>+-- More: <http://www.last.fm/api/show/library.removeArtist> removeArtist :: Artist -> APIKey -> SessionKey -> Secret -> Lastfm Response removeArtist artist apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "library.removeArtist")@@ -107,7 +107,7 @@  -- | Remove a scrobble from a user's Last.fm library. ----- More: <http://www.lastfm.ru/api/show/library.removeScrobble>+-- More: <http://www.last.fm/api/show/library.removeScrobble> removeScrobble :: Artist -> Track -> Timestamp -> APIKey -> SessionKey -> Secret -> Lastfm Response removeScrobble artist track timestamp apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "library.removeScrobble")@@ -120,7 +120,7 @@  -- | Remove a track from a user's Last.fm library. ----- More: <http://www.lastfm.ru/api/show/library.removeTrack>+-- More: <http://www.last.fm/api/show/library.removeTrack> removeTrack :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response removeTrack artist track apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "library.removeTrack")
Network/Lastfm/API/Playlist.hs view
@@ -9,7 +9,7 @@  -- | Add a track to a Last.fm user's playlist. ----- More: <http://www.lastfm.ru/api/show/playlist.addTrack>+-- More: <http://www.last.fm/api/show/playlist.addTrack> addTrack :: Playlist -> Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response addTrack playlist artist track apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "playlist.addTrack")@@ -22,7 +22,7 @@  -- | Create a Last.fm playlist on behalf of a user. ----- More: <http://www.lastfm.ru/api/show/playlist.create>+-- More: <http://www.last.fm/api/show/playlist.create> create :: Maybe Title -> Maybe Description -> APIKey -> SessionKey -> Secret -> Lastfm Response create title description apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "playlist.create")
Network/Lastfm/API/Radio.hs view
@@ -9,7 +9,7 @@  -- | Fetch new radio content periodically in an XSPF format. ----- More: <http://www.lastfm.ru/api/show/radio.getPlaylist>+-- More: <http://www.last.fm/api/show/radio.getPlaylist> getPlaylist :: Maybe Discovery             -> Maybe RTP             -> Maybe BuyLinks@@ -32,7 +32,7 @@  -- | Resolve the name of a resource into a station depending on which resource it is most likely to represent. ----- More: <http://www.lastfm.ru/api/show/radio.search>+-- More: <http://www.last.fm/api/show/radio.search> search :: Name -> APIKey -> Lastfm Response search name apiKey = callAPI   [ (#) (Method "radio.search")@@ -42,7 +42,7 @@  -- | Tune in to a Last.fm radio station. ----- More: <http://www.lastfm.ru/api/show/radio.tune>+-- More: <http://www.last.fm/api/show/radio.tune> tune :: Maybe Language -> Station -> APIKey -> SessionKey -> Secret -> Lastfm Response tune language station apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "radio.tune")
Network/Lastfm/API/Tag.hs view
@@ -10,7 +10,7 @@  -- | Get the metadata for a tag. ----- More: <http://www.lastfm.ru/api/show/tag.getInfo>+-- More: <http://www.last.fm/api/show/tag.getInfo> getInfo :: Tag -> Maybe Language -> APIKey -> Lastfm Response getInfo tag language apiKey = callAPI   [ (#) (Method "tag.getInfo")@@ -21,7 +21,7 @@  -- | Search for tags similar to this one. Returns tags ranked by similarity, based on listening data. ----- More: <http://www.lastfm.ru/api/show/tag.getSimilar>+-- More: <http://www.last.fm/api/show/tag.getSimilar> getSimilar :: Tag -> APIKey -> Lastfm Response getSimilar tag apiKey = callAPI   [ (#) (Method "tag.getSimilar")@@ -31,7 +31,7 @@  -- | Get the top albums tagged by this tag, ordered by tag count. ----- More: <http://www.lastfm.ru/api/show/tag.getTopAlbums>+-- More: <http://www.last.fm/api/show/tag.getTopAlbums> getTopAlbums :: Tag -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopAlbums tag page limit apiKey = callAPI   [ (#) (Method "tag.getTopAlbums")@@ -43,7 +43,7 @@  -- | Get the top artists tagged by this tag, ordered by tag count. ----- More: <http://www.lastfm.ru/api/show/tag.getTopArtists>+-- More: <http://www.last.fm/api/show/tag.getTopArtists> getTopArtists :: Tag -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopArtists tag limit page apiKey = callAPI   [ (#) (Method "tag.getTopArtists")@@ -55,7 +55,7 @@  -- | Fetches the top global tags on Last.fm, sorted by popularity (number of times used). ----- More: <http://www.lastfm.ru/api/show/tag.getTopTags>+-- More: <http://www.last.fm/api/show/tag.getTopTags> getTopTags :: APIKey -> Lastfm Response getTopTags apiKey = callAPI   [ (#) (Method "tag.getTopArtists")@@ -64,7 +64,7 @@  -- | Get the top tracks tagged by this tag, ordered by tag count. ----- More: <http://www.lastfm.ru/api/show/tag.getTopTracks>+-- More: <http://www.last.fm/api/show/tag.getTopTracks> getTopTracks :: Tag -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopTracks tag limit page apiKey = callAPI   [ (#) (Method "tag.getTopTracks")@@ -76,7 +76,7 @@  -- | Get an artist chart for a tag, for a given date range. If no date range is supplied, it will return the most recent artist chart for this tag. ----- More: <http://www.lastfm.ru/api/show/tag.getWeeklyArtistChart>+-- More: <http://www.last.fm/api/show/tag.getWeeklyArtistChart> getWeeklyArtistChart :: Tag -> Maybe From -> Maybe To -> Maybe Limit -> APIKey -> Lastfm Response getWeeklyArtistChart tag from to limit apiKey = callAPI   [ (#) (Method "tag.getWeeklyArtistChart")@@ -89,7 +89,7 @@  -- | Get a list of available charts for this tag, expressed as date ranges which can be sent to the chart services. ----- More: <http://www.lastfm.ru/api/show/tag.getWeeklyChartList>+-- More: <http://www.last.fm/api/show/tag.getWeeklyChartList> getWeeklyChartList :: Tag -> APIKey -> Lastfm Response getWeeklyChartList tag apiKey = callAPI   [ (#) (Method "tag.getWeeklyChartList")@@ -99,7 +99,7 @@  -- | Search for a tag by name. Returns matches sorted by relevance. ----- More: <http://www.lastfm.ru/api/show/tag.search>+-- More: <http://www.last.fm/api/show/tag.search> search :: Tag -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response search tag page limit apiKey = callAPI   [ (#) (Method "tag.search")
Network/Lastfm/API/Tasteometer.hs view
@@ -13,7 +13,7 @@  -- | Get a Tasteometer score from two inputs, along with a list of shared artists. If the input is a User some additional information is returned. ----- More: <http://www.lastfm.ru/api/show/tasteometer.compare>+-- More: <http://www.last.fm/api/show/tasteometer.compare> compare :: Value -> Value -> Maybe Limit -> APIKey -> Lastfm Response compare value1 value2 limit apiKey = callAPI   [ (#) (Method "tasteometer.compare")
Network/Lastfm/API/Track.hs view
@@ -11,7 +11,7 @@  -- | Tag a track using a list of user supplied tags. ----- More: <http://www.lastfm.ru/api/show/track.addTags>+-- More: <http://www.last.fm/api/show/track.addTags> addTags :: Artist -> Track -> [Tag] -> APIKey -> SessionKey -> Secret -> Lastfm Response addTags artist track tags apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "track.addTags")@@ -24,7 +24,7 @@  -- | Ban a track for a given user profile. ----- More: <http://www.lastfm.ru/api/show/track.ban>+-- More: <http://www.last.fm/api/show/track.ban> ban :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response ban artist track apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "track.ban")@@ -36,7 +36,7 @@  -- | Get a list of Buy Links for a particular track. ----- More: <http://www.lastfm.ru/api/show/track.getBuylinks>+-- More: <http://www.last.fm/api/show/track.getBuylinks> getBuyLinks :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Country -> APIKey -> Lastfm Response getBuyLinks a autocorrect country apiKey = callAPI $   target a ++@@ -48,7 +48,7 @@  -- | Use the last.fm corrections data to check whether the supplied track has a correction to a canonical track. ----- More: <http://www.lastfm.ru/api/show/track.getCorrection>+-- More: <http://www.last.fm/api/show/track.getCorrection> getCorrection :: Artist -> Track -> APIKey -> Lastfm Response getCorrection artist track apiKey = callAPI   [ (#) (Method "track.getCorrection")@@ -59,7 +59,7 @@  -- | Retrieve track metadata associated with a fingerprint id generated by the Last.fm Fingerprinter. Returns track elements, along with a 'rank' value between 0 and 1 reflecting the confidence for each match. ----- More: <http://www.lastfm.ru/api/show/track.getFingerprintMetadata>+-- More: <http://www.last.fm/api/show/track.getFingerprintMetadata> getFingerprintMetadata :: Fingerprint -> APIKey -> Lastfm Response getFingerprintMetadata fingerprint apiKey = callAPI   [ (#) (Method "track.getFingerprintMetadata")@@ -69,7 +69,7 @@  -- | Get the metadata for a track on Last.fm. ----- More: <http://www.lastfm.ru/api/show/track.getInfo>+-- More: <http://www.last.fm/api/show/track.getInfo> getInfo :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Maybe Username -> APIKey -> Lastfm Response getInfo a autocorrect username apiKey = callAPI $   target a ++@@ -81,7 +81,7 @@  -- | Get shouts for this track. Also available as an rss feed. ----- More: <http://www.lastfm.ru/api/show/track.getShouts>+-- More: <http://www.last.fm/api/show/track.getShouts> getShouts :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getShouts a autocorrect page limit apiKey = callAPI $   target a ++@@ -94,7 +94,7 @@  -- | Get the similar tracks for this track on Last.fm, based on listening data. ----- More: <http://www.lastfm.ru/api/show/track.getSimilar>+-- More: <http://www.last.fm/api/show/track.getSimilar> getSimilar :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Maybe Limit -> APIKey -> Lastfm Response getSimilar a autocorrect limit apiKey = callAPI $   target a ++@@ -106,7 +106,7 @@  -- | Get the tags applied by an individual user to a track on Last.fm. ----- More: <http://www.lastfm.ru/api/show/track.getTags>+-- More: <http://www.last.fm/api/show/track.getTags> getTags :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Either User (SessionKey, Secret) -> APIKey -> Lastfm Response getTags a autocorrect b apiKey = case b of   Left user -> callAPI $ target a ++ [(#) user] ++ args@@ -119,7 +119,7 @@  -- | Get the top fans for this track on Last.fm, based on listening data. ----- More: <http://www.lastfm.ru/api/show/track.getTopFans>+-- More: <http://www.last.fm/api/show/track.getTopFans> getTopFans :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> APIKey -> Lastfm Response getTopFans a autocorrect apiKey = callAPI $   target a ++@@ -130,7 +130,7 @@  -- | Get the top tags for this track on Last.fm, ordered by tag count. ----- More: <http://www.lastfm.ru/api/show/track.getTopTags>+-- More: <http://www.last.fm/api/show/track.getTopTags> getTopTags :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> APIKey -> Lastfm Response getTopTags a autocorrect apiKey = callAPI $   target a ++@@ -141,7 +141,7 @@  -- | Love a track for a user profile. ----- More: <http://www.lastfm.ru/api/show/track.love>+-- More: <http://www.last.fm/api/show/track.love> love :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response love artist track apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "track.love")@@ -153,7 +153,7 @@  -- | Remove a user's tag from a track. ----- More: <http://www.lastfm.ru/api/show/track.removeTag>+-- More: <http://www.last.fm/api/show/track.removeTag> removeTag :: Artist -> Track -> Tag -> APIKey -> SessionKey -> Secret -> Lastfm Response removeTag artist track tag apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "track.removeTag")@@ -166,7 +166,7 @@  -- | Used to add a track-play to a user's profile. ----- More; <http://www.lastfm.ru/api/show/track.scrobble>+-- More; <http://www.last.fm/api/show/track.scrobble> scrobble :: ( Timestamp, Maybe Album, Artist, Track, Maybe AlbumArtist            , Maybe Duration, Maybe StreamId, Maybe ChosenByUser            , Maybe Context, Maybe TrackNumber, Maybe Mbid )@@ -193,7 +193,7 @@  -- | Search for a track by track name. Returns track matches sorted by relevance. ----- More: <http://www.lastfm.ru/api/show/track.search>+-- More: <http://www.last.fm/api/show/track.search> search :: Track -> Maybe Page -> Maybe Limit -> Maybe Artist -> APIKey -> Lastfm Response search track page limit artist apiKey = callAPI   [ (#) (Method "track.search")@@ -206,7 +206,7 @@  -- | Share a track twith one or more Last.fm users or other friends. ----- More: <http://www.lastfm.ru/api/show/track.share>+-- More: <http://www.last.fm/api/show/track.share> share :: Artist -> Track -> Recipient -> Maybe Message -> Maybe Public -> APIKey -> SessionKey -> Secret -> Lastfm Response share artist track recipient message public apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "track.share")@@ -221,7 +221,7 @@  -- | Unban a track for a user profile. ----- More: <http://www.lastfm.ru/api/show/track.unban>+-- More: <http://www.last.fm/api/show/track.unban> unban :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response unban artist track apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "track.unban")@@ -233,7 +233,7 @@  -- | Unlove a track for a user profile. ----- More: <http://www.lastfm.ru/api/show/track.unlove>+-- More: <http://www.last.fm/api/show/track.unlove> unlove :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response unlove artist track apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "track.unlove")@@ -246,7 +246,7 @@  -- | Used to notify Last.fm that a user has started listening to a track. Parameter names are case sensitive. ----- More: <http://www.lastfm.ru/api/show/track.updateNowPlaying>+-- More: <http://www.last.fm/api/show/track.updateNowPlaying> updateNowPlaying :: Artist                  -> Track                  -> Maybe Album
Network/Lastfm/API/User.hs view
@@ -13,7 +13,7 @@  -- | Get a list of tracks by a given artist scrobbled by this user, including scrobble time. Can be limited to specific timeranges, defaults to all time. ----- More: <http://www.lastfm.ru/api/show/user.getArtistTracks>+-- More: <http://www.last.fm/api/show/user.getArtistTracks> getArtistTracks :: User -> Artist -> Maybe StartTimestamp -> Maybe EndTimestamp -> Maybe Page -> APIKey -> Lastfm Response getArtistTracks user artist startTimestamp endTimestamp page apiKey = callAPI   [ (#) (Method "user.getArtistTracks")@@ -27,7 +27,7 @@  -- | Returns the tracks banned by the user. ----- More: <http://www.lastfm.ru/api/show/user.getBannedTracks>+-- More: <http://www.last.fm/api/show/user.getBannedTracks> getBannedTracks :: User -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getBannedTracks user page limit apiKey = callAPI   [ (#) (Method "user.getBannedTracks")@@ -39,7 +39,7 @@  -- | Get a list of upcoming events that this user is attending. ----- Mpre: <http://www.lastfm.ru/api/show/user.getEvents>+-- Mpre: <http://www.last.fm/api/show/user.getEvents> getEvents :: User -> Maybe Page -> Maybe Limit -> Maybe FestivalsOnly -> APIKey -> Lastfm Response getEvents user page limit festivalsOnly apiKey = callAPI   [ (#) (Method "user.getEvents")@@ -52,7 +52,7 @@  -- | Get a list of the user's friends on Last.fm. ----- More: <http://www.lastfm.ru/api/show/user.getFriends>+-- More: <http://www.last.fm/api/show/user.getFriends> getFriends :: User -> Maybe RecentTracks -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getFriends user recentTracks page limit apiKey = callAPI   [ (#) (Method "user.getFriends")@@ -65,7 +65,7 @@  -- | Get information about a user profile. ----- More: <http://www.lastfm.ru/api/show/user.getInfo>+-- More: <http://www.last.fm/api/show/user.getInfo> getInfo :: Maybe User -> APIKey -> Lastfm Response getInfo user apiKey = callAPI   [ (#) (Method "user.getInfo")@@ -75,7 +75,7 @@  -- | Get tracks loved by a user. ----- More: <http://www.lastfm.ru/api/show/user.getLovedTracks>+-- More: <http://www.last.fm/api/show/user.getLovedTracks> getLovedTracks :: User -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getLovedTracks user page limit apiKey = callAPI   [ (#) (Method "user.getLovedTracks")@@ -87,7 +87,7 @@  -- | Get a list of a user's neighbours on Last.fm. ----- More: <http://www.lastfm.ru/api/show/user.getNeighbours>+-- More: <http://www.last.fm/api/show/user.getNeighbours> getNeighbours :: User -> Maybe Limit -> APIKey -> Lastfm Response getNeighbours user limit apiKey = callAPI   [ (#) (Method "user.getNeighbours")@@ -98,7 +98,7 @@  -- | Gets a list of forthcoming releases based on a user's musical taste. ----- More: <http://www.lastfm.ru/api/show/user.getNewReleases>+-- More: <http://www.last.fm/api/show/user.getNewReleases> getNewReleases :: User -> Maybe UseRecs -> APIKey -> Lastfm Response getNewReleases user useRecs apiKey = callAPI   [ (#) (Method "user.getNewReleases")@@ -109,7 +109,7 @@  -- | Get a paginated list of all events a user has attended in the past. ----- More: <http://www.lastfm.ru/api/show/user.getPastEvents>+-- More: <http://www.last.fm/api/show/user.getPastEvents> getPastEvents :: User -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getPastEvents user page limit apiKey = callAPI   [ (#) (Method "user.getPastEvents")@@ -121,7 +121,7 @@  -- | Get the user's personal tags. ----- More: <http://www.lastfm.ru/api/show/user.getPersonalTags>+-- More: <http://www.last.fm/api/show/user.getPersonalTags> getPersonalTags :: User                 -> Tag                 -> TaggingType@@ -141,7 +141,7 @@  -- | Get a list of a user's playlists on Last.fm. ----- More: <http://www.lastfm.ru/api/show/user.getPlaylists>+-- More: <http://www.last.fm/api/show/user.getPlaylists> getPlaylists :: User -> APIKey -> Lastfm Response getPlaylists user apiKey = callAPI   [ (#) (Method "user.getPlaylists")@@ -151,7 +151,7 @@  -- | Get a list of the recent Stations listened to by this user. ----- More: <http://www.lastfm.ru/api/show/user.getRecentStations>+-- More: <http://www.last.fm/api/show/user.getRecentStations> getRecentStations :: User -> Maybe Page -> Maybe Limit -> APIKey -> SessionKey -> Secret -> Lastfm Response getRecentStations user page limit apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "user.getRecentStations")@@ -164,7 +164,7 @@  -- | Get a list of the recent tracks listened to by this user. Also includes the currently playing track with the nowplaying="true" attribute if the user is currently listening. ----- More: <http://www.lastfm.ru/api/show/user.getRecentTracks>+-- More: <http://www.last.fm/api/show/user.getRecentTracks> getRecentTracks :: User -> Maybe Page -> Maybe Limit -> Maybe From -> Maybe To -> APIKey -> Lastfm Response getRecentTracks user page limit from to apiKey = callAPI   [ (#) (Method "user.getRecentTracks")@@ -178,7 +178,7 @@  -- | Get Last.fm artist recommendations for a user. ----- Mpre: <http://www.lastfm.ru/api/show/user.getRecommendedArtists>+-- Mpre: <http://www.last.fm/api/show/user.getRecommendedArtists> getRecommendedArtists :: Maybe Page -> Maybe Limit -> APIKey -> SessionKey -> Secret -> Lastfm Response getRecommendedArtists page limit apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "user.getRecommendedArtists")@@ -190,7 +190,7 @@  -- | Get a paginated list of all events recommended to a user by Last.fm, based on their listening profile. ----- More: <http://www.lastfm.ru/api/show/user.getRecommendedEvents>+-- More: <http://www.last.fm/api/show/user.getRecommendedEvents> getRecommendedEvents :: Maybe Page -> Maybe Limit -> APIKey -> SessionKey -> Secret -> Lastfm Response getRecommendedEvents page limit apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "user.getRecommendedEvents")@@ -202,7 +202,7 @@  -- | Get shouts for this user. Also available as an rss feed. ----- More: <http://www.lastfm.ru/api/show/user.getShouts>+-- More: <http://www.last.fm/api/show/user.getShouts> getShouts :: User -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getShouts user page limit apiKey = callAPI   [ (#) (Method "user.getShouts")@@ -214,7 +214,7 @@  -- | Get the top albums listened to by a user. You can stipulate a time period. Sends the overall chart by default. ----- More: <http://www.lastfm.ru/api/show/user.getTopAlbums>+-- More: <http://www.last.fm/api/show/user.getTopAlbums> getTopAlbums :: User -> Maybe Period -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopAlbums user period page limit apiKey = callAPI   [ (#) (Method "user.getTopAlbums")@@ -227,7 +227,7 @@  -- | Get the top artists listened to by a user. You can stipulate a time period. Sends the overall chart by default. ----- More: <http://www.lastfm.ru/api/show/user.getTopArtists>+-- More: <http://www.last.fm/api/show/user.getTopArtists> getTopArtists :: User -> Maybe Period -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopArtists user period page limit apiKey = callAPI   [ (#) (Method "user.getTopArtists")@@ -240,7 +240,7 @@  -- | Get the top tags used by this user. ----- More: <http://www.lastfm.ru/api/show/user.getTopTags>+-- More: <http://www.last.fm/api/show/user.getTopTags> getTopTags :: User -> Maybe Limit -> APIKey -> Lastfm Response getTopTags user limit apiKey = callAPI   [ (#) (Method "user.getTopTags")@@ -251,7 +251,7 @@  -- | Get the top tracks listened to by a user. You can stipulate a time period. Sends the overall chart by default. ----- More: <http://www.lastfm.ru/api/show/user.getTopTracks>+-- More: <http://www.last.fm/api/show/user.getTopTracks> getTopTracks :: User -> Maybe Period -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getTopTracks user period page limit apiKey = callAPI   [ (#) (Method "user.getTopTracks")@@ -264,7 +264,7 @@  -- | Get an album chart for a user profile, for a given date range. If no date range is supplied, it will return the most recent album chart for this user. ----- More: <http://www.lastfm.ru/api/show/user.getWeeklyAlbumChart>+-- More: <http://www.last.fm/api/show/user.getWeeklyAlbumChart> getWeeklyAlbumChart :: User -> Maybe From -> Maybe To -> APIKey -> Lastfm Response getWeeklyAlbumChart user from to apiKey = callAPI   [ (#) (Method "user.getWeeklyAlbumChart")@@ -276,7 +276,7 @@  -- | Get an artist chart for a user profile, for a given date range. If no date range is supplied, it will return the most recent artist chart for this user. ----- More: <http://www.lastfm.ru/api/show/user.getWeeklyArtistChart>+-- More: <http://www.last.fm/api/show/user.getWeeklyArtistChart> getWeeklyArtistChart :: User -> Maybe From -> Maybe To -> APIKey -> Lastfm Response getWeeklyArtistChart user from to apiKey = callAPI   [ (#) (Method "user.getWeeklyArtistChart")@@ -288,7 +288,7 @@  -- | Get a list of available charts for this user, expressed as date ranges which can be sent to the chart services. ----- More: <http://www.lastfm.ru/api/show/user.getWeeklyChartList>+-- More: <http://www.last.fm/api/show/user.getWeeklyChartList> getWeeklyChartList :: User -> APIKey -> Lastfm Response getWeeklyChartList user apiKey = callAPI   [ (#) (Method "user.getWeeklyChartList")@@ -298,7 +298,7 @@  -- | Get a track chart for a user profile, for a given date range. If no date range is supplied, it will return the most recent track chart for this user. ----- More: <http://www.lastfm.ru/api/show/user.getWeeklyTrackChart>+-- More: <http://www.last.fm/api/show/user.getWeeklyTrackChart> getWeeklyTrackChart :: User -> Maybe From -> Maybe To -> APIKey -> Lastfm Response getWeeklyTrackChart user from to apiKey = callAPI   [ (#) (Method "user.getWeeklyTrackChart")@@ -310,7 +310,7 @@  -- | Shout on this user's shoutbox. ----- More: <http://www.lastfm.ru/api/show/user.shout>+-- More: <http://www.last.fm/api/show/user.shout> shout :: User -> Message -> APIKey -> SessionKey -> Secret -> Lastfm Response shout user message apiKey sessionKey secret = callAPIsigned secret   [ (#) (Method "user.shout")
Network/Lastfm/API/Venue.hs view
@@ -9,7 +9,7 @@  -- | Get a list of upcoming events at this venue. ----- More: <http://www.lastfm.ru/api/show/venue.getEvents>+-- More: <http://www.last.fm/api/show/venue.getEvents> getEvents :: Venue -> Maybe FestivalsOnly -> APIKey -> Lastfm Response getEvents venue festivalsOnly apiKey = callAPI   [ (#) (Method "venue.getEvents")@@ -20,7 +20,7 @@  -- | Get a paginated list of all the events held at this venue in the past. ----- More: <http://www.lastfm.ru/api/show/venue.getPastEvents>+-- More: <http://www.last.fm/api/show/venue.getPastEvents> getPastEvents :: Venue -> Maybe FestivalsOnly -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response getPastEvents venue festivalsOnly page limit apiKey = callAPI   [ (#) (Method "venue.getPastEvents")@@ -33,7 +33,7 @@  -- | Search for a venue by venue name. ----- More: <http://www.lastfm.ru/api/show/venue.search>+-- More: <http://www.last.fm/api/show/venue.search> search :: Venuename -> Maybe Page -> Maybe Limit -> Maybe Country -> APIKey -> Lastfm Response search venue page limit country apiKey = callAPI   [ (#) (Method "venue.search")
liblastfm.cabal view
@@ -1,5 +1,5 @@ Name: liblastfm-Version: 0.0.2.1+Version: 0.0.2.2 Description: Wrapper to Lastfm API License: MIT License-file: LICENSE