liblastfm-0.0.3.5: Wrapper to Lastfm API

Safe HaskellNone

Network.Lastfm.JSON.Track

Description

Track API module

Synopsis

Documentation

addTags :: Artist -> Track -> [Tag] -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource

Tag a track using a list of user supplied tags. More: http://www.last.fm/api/show/track.addTags

ban :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource

Ban a track for a given user profile. More: http://www.last.fm/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.last.fm/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.last.fm/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.last.fm/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.last.fm/api/show/track.getSimilar

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

Get the tags applied by an individual user to a track on Last.fm. More: http://www.last.fm/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.last.fm/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.last.fm/api/show/track.getTopTags

love :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource

Love a track for a user profile. More: http://www.last.fm/api/show/track.love

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.last.fm/api/show/track.search

share :: Artist -> Track -> Recipient -> Maybe Message -> Maybe Public -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource

Share a track twith one or more Last.fm users or other friends. More: http://www.last.fm/api/show/track.share

unban :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource

Unban a track for a user profile. More: http://www.last.fm/api/show/track.unban

unlove :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource

Unlove a track for a user profile. More: http://www.last.fm/api/show/track.unlove

updateNowPlaying :: Artist -> Track -> Maybe Album -> Maybe AlbumArtist -> Maybe Context -> Maybe TrackNumber -> Maybe Mbid -> Maybe Duration -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource

Used to notify Last.fm that a user has started listening to a track. Parameter names are case sensitive. More: http://www.last.fm/api/show/track.updateNowPlaying