liblastfm-0.1.0.0: Lastfm API interface

Safe HaskellNone

Network.Lastfm.Track

Description

Lastfm track API

This module is intended to be imported qualified:

 import qualified Network.Lastfm.Track as Track

Synopsis

Documentation

class ArtistTrackOrMBID a Source

Unify (ArtistTrack → …) and (MBID → …)

addTags :: Request f Sign (Artist -> Track -> [Tag] -> APIKey -> SessionKey -> Ready)Source

Tag a track using a list of user supplied tags.

http://www.last.fm/api/show/track.addTags

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

Ban a track for a given user profile.

http://www.last.fm/api/show/track.ban

getBuyLinks :: ArtistTrackOrMBID t => Request f Send (Country -> t)Source

Get a list of Buy Links for a particular track.

Optional: autocorrect

http://www.last.fm/api/show/track.getBuylinks

getCorrection :: Request f Send (Artist -> Track -> APIKey -> Ready)Source

Use the last.fm corrections data to check whether the supplied track has a correction to a canonical track.

http://www.last.fm/api/show/track.getCorrection

getFingerprintMetadata :: Request f Send (Fingerprint -> APIKey -> Ready)Source

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.

http://www.last.fm/api/show/track.getFingerprintMetadata

getInfo :: ArtistTrackOrMBID t => Request f Send tSource

Get the metadata for a track on Last.fm.

Optional: autocorrect, username

http://www.last.fm/api/show/track.getInfo

getShouts :: ArtistTrackOrMBID t => Request f Send tSource

Get shouts for this track. Also available as an rss feed.

Optional: autocorrect, limit, page

http://www.last.fm/api/show/track.getShouts

getSimilar :: ArtistTrackOrMBID t => Request f Send tSource

Get the similar tracks for this track on Last.fm, based on listening data.

Optional: autocorrect, limit

http://www.last.fm/api/show/track.getSimilar

getTags :: ArtistTrackOrMBID t => Request f Send tSource

Get the tags applied by an individual user to a track on Last.fm.

Optional: autocorrect, user

http://www.last.fm/api/show/track.getTags

getTopFans :: ArtistTrackOrMBID t => Request f Send tSource

Get the top fans for this track on Last.fm, based on listening data.

Optional: autocorrect

http://www.last.fm/api/show/track.getTopFans

getTopTags :: ArtistTrackOrMBID t => Request f Send tSource

Get the top tags for this track on Last.fm, ordered by tag count.

Optional: autocorrect

http://www.last.fm/api/show/track.getTopTags

search :: Request f Send (Track -> APIKey -> Ready)Source

Search for a track by track name. Returns track matches sorted by relevance.

Optional: artist, limit, page

http://www.last.fm/api/show/track.search

share :: Request f Sign (Artist -> Track -> Recipient -> APIKey -> SessionKey -> Ready)Source

Share a track twith one or more Last.fm users or other friends.

Optional: public, message, recipient

http://www.last.fm/api/show/track.share

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

Used to notify Last.fm that a user has started listening to a track. Parameter names are case sensitive.

Optional: album, albumArtist, context, duration, mbid, trackNumber

http://www.last.fm/api/show/track.updateNowPlaying