Safe Haskell | None |
---|
Lastfm track API
This module is intended to be imported qualified:
import qualified Network.Lastfm.Track as Track
- class ArtistTrackOrMBID a
- addTags :: Request f Sign (Artist -> Track -> [Tag] -> APIKey -> SessionKey -> Ready)
- ban :: Request f Sign (Artist -> Track -> APIKey -> SessionKey -> Ready)
- getBuyLinks :: ArtistTrackOrMBID t => Request f Send (Country -> t)
- getCorrection :: Request f Send (Artist -> Track -> APIKey -> Ready)
- getFingerprintMetadata :: Request f Send (Fingerprint -> APIKey -> Ready)
- getInfo :: ArtistTrackOrMBID t => Request f Send t
- getShouts :: ArtistTrackOrMBID t => Request f Send t
- getSimilar :: ArtistTrackOrMBID t => Request f Send t
- getTags :: ArtistTrackOrMBID t => Request f Send t
- getTopFans :: ArtistTrackOrMBID t => Request f Send t
- getTopTags :: ArtistTrackOrMBID t => Request f Send t
- love :: Request f Sign (Artist -> Track -> APIKey -> SessionKey -> Ready)
- removeTag :: Request f Sign (Artist -> Track -> Tag -> APIKey -> SessionKey -> Ready)
- scrobble :: Request f Sign (Artist -> Track -> Timestamp -> APIKey -> SessionKey -> Ready)
- search :: Request f Send (Track -> APIKey -> Ready)
- share :: Request f Sign (Artist -> Track -> Recipient -> APIKey -> SessionKey -> Ready)
- unban :: Request f Sign (Artist -> Track -> APIKey -> SessionKey -> Ready)
- unlove :: Request f Sign (Artist -> Track -> APIKey -> SessionKey -> Ready)
- updateNowPlaying :: Request f Sign (Artist -> Track -> APIKey -> SessionKey -> Ready)
Documentation
class ArtistTrackOrMBID a Source
ArtistTrackOrMBID (MBID -> APIKey -> Ready) | |
ArtistTrackOrMBID (Artist -> Track -> APIKey -> Ready) |
addTags :: Request f Sign (Artist -> Track -> [Tag] -> APIKey -> SessionKey -> Ready)Source
Tag a track using a list of user supplied tags.
ban :: Request f Sign (Artist -> Track -> APIKey -> SessionKey -> Ready)Source
Ban a track for a given user profile.
getBuyLinks :: ArtistTrackOrMBID t => Request f Send (Country -> t)Source
Get a list of Buy Links for a particular track.
Optional: autocorrect
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.
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.
getInfo :: ArtistTrackOrMBID t => Request f Send tSource
Get the metadata for a track on Last.fm.
Optional: autocorrect
, username
getShouts :: ArtistTrackOrMBID t => Request f Send tSource
Get shouts for this track. Also available as an rss feed.
Optional: autocorrect
, limit
, page
getSimilar :: ArtistTrackOrMBID t => Request f Send tSource
Get the similar tracks for this track on Last.fm, based on listening data.
Optional: autocorrect
, limit
getTags :: ArtistTrackOrMBID t => Request f Send tSource
Get the tags applied by an individual user to a track on Last.fm.
Optional: autocorrect
, user
getTopFans :: ArtistTrackOrMBID t => Request f Send tSource
Get the top fans for this track on Last.fm, based on listening data.
Optional: autocorrect
getTopTags :: ArtistTrackOrMBID t => Request f Send tSource
Get the top tags for this track on Last.fm, ordered by tag count.
Optional: autocorrect
love :: Request f Sign (Artist -> Track -> APIKey -> SessionKey -> Ready)Source
Love a track for a user profile.
removeTag :: Request f Sign (Artist -> Track -> Tag -> APIKey -> SessionKey -> Ready)Source
Remove a user's tag from a track.
scrobble :: Request f Sign (Artist -> Track -> Timestamp -> APIKey -> SessionKey -> Ready)Source
Used to add a track-play to a user's profile.
Optional: album
, albumArtist
, chosenByUser
, context
,
duration
, mbid
, streamId
, trackNumber
search :: Request f Send (Track -> APIKey -> Ready)Source
Search for a track by track name. Returns track matches sorted by relevance.
share :: Request f Sign (Artist -> Track -> Recipient -> APIKey -> SessionKey -> Ready)Source
unban :: Request f Sign (Artist -> Track -> APIKey -> SessionKey -> Ready)Source
Unban a track for a user profile.
unlove :: Request f Sign (Artist -> Track -> APIKey -> SessionKey -> Ready)Source
Unlove a track for a user profile.
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