liblastfm-0.0.1.0: Wrapper to Lastfm API

Safe HaskellNone

Network.Lastfm.API.Track

Description

Track API module

Synopsis

Documentation

addTags :: Artist -> Track -> [Tag] -> APIKey -> SessionKey -> Lastfm ()Source

Tag a track using a list of user supplied tags.

More: http://www.lastfm.ru/api/show/track.addTags

ban :: Artist -> Track -> APIKey -> SessionKey -> Lastfm ()Source

Ban a track for a given user profile.

More: http://www.lastfm.ru/api/show/track.ban

getCorrection :: Artist -> Track -> APIKey -> Lastfm ResponseSource

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

getFingerprintMetadata :: Fingerprint -> APIKey -> Lastfm ResponseSource

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

getShouts :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm ResponseSource

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

More: http://www.lastfm.ru/api/show/track.getShouts

getSimilar :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Maybe Limit -> APIKey -> Lastfm ResponseSource

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

More: http://www.lastfm.ru/api/show/track.getSimilar

getTags :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Either User SessionKey -> APIKey -> Lastfm ResponseSource

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

More: http://www.lastfm.ru/api/show/track.getTags

getTopFans :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> APIKey -> Lastfm ResponseSource

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

More: http://www.lastfm.ru/api/show/track.getTopFans

getTopTags :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> APIKey -> Lastfm ResponseSource

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

More: http://www.lastfm.ru/api/show/track.getTopTags

love :: Artist -> Track -> APIKey -> SessionKey -> Lastfm ()Source

Love a track for a user profile.

More: http://www.lastfm.ru/api/show/track.love

removeTag :: Artist -> Track -> Tag -> APIKey -> SessionKey -> Lastfm ()Source

Remove a user's tag from a track.

More: http://www.lastfm.ru/api/show/track.removeTag

search :: Track -> Maybe Page -> Maybe Limit -> Maybe Artist -> APIKey -> Lastfm ResponseSource

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

More: http://www.lastfm.ru/api/show/track.search

share :: Artist -> Track -> [Recipient] -> Maybe Message -> Maybe Public -> APIKey -> SessionKey -> Lastfm ()Source

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

More: http://www.lastfm.ru/api/show/track.share

unban :: Artist -> Track -> APIKey -> SessionKey -> Lastfm ()Source

Unban a track for a user profile.

More: http://www.lastfm.ru/api/show/track.unban

unlove :: Artist -> Track -> APIKey -> SessionKey -> Lastfm ()Source

Unlove a track for a user profile.

More: http://www.lastfm.ru/api/show/track.unlove

updateNowPlaying :: Artist -> Track -> Maybe Album -> Maybe AlbumArtist -> Maybe Context -> Maybe TrackNumber -> Maybe Mbid -> Maybe Duration -> APIKey -> SessionKey -> Lastfm ()Source

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