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