liblastfm-0.5.1: Lastfm API interface

Safe HaskellNone
LanguageHaskell2010

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 (Artist -> Track -> …) and (MBID -> …)

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

Tag a track using a list of user supplied tags.

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

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

Ban a track for a given user profile.

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

getBuyLinks :: ArtistTrackOrMBID t => Request f (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 (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 (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 t Source

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 t Source

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 t Source

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 t Source

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 t Source

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 t Source

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

Optional: autocorrect

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

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

Love a track for a user profile.

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

scrobble :: NonEmpty (Request f Scrobble) -> Request f (APIKey -> SessionKey -> Sign) Source

Add played tracks to the user profile.

Scrobbles 50 first list elements

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

search :: Request f (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 (Artist -> Track -> Recipient -> APIKey -> SessionKey -> Sign) 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

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

Unban a track for a user profile.

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

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

Unlove a track for a user profile.

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

updateNowPlaying :: Request f (Artist -> Track -> APIKey -> SessionKey -> Sign) 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