Safe Haskell | None |
---|
Track API module
- addTags :: Artist -> Track -> [Tag] -> APIKey -> SessionKey -> Secret -> Lastfm Response
- ban :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response
- getBuyLinks :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Country -> APIKey -> Lastfm Response
- getCorrection :: Artist -> Track -> APIKey -> Lastfm Response
- getFingerprintMetadata :: Fingerprint -> APIKey -> Lastfm Response
- getInfo :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Maybe Username -> APIKey -> Lastfm Response
- getShouts :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response
- getSimilar :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Maybe Limit -> APIKey -> Lastfm Response
- getTags :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Either User (SessionKey, Secret) -> APIKey -> Lastfm Response
- getTopFans :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> APIKey -> Lastfm Response
- getTopTags :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> APIKey -> Lastfm Response
- love :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response
- removeTag :: Artist -> Track -> Tag -> APIKey -> SessionKey -> Secret -> Lastfm Response
- scrobble :: (Timestamp, Maybe Album, Artist, Track, Maybe AlbumArtist, Maybe Duration, Maybe StreamId, Maybe ChosenByUser, Maybe Context, Maybe TrackNumber, Maybe Mbid) -> APIKey -> SessionKey -> Secret -> Lastfm Response
- search :: Track -> Maybe Page -> Maybe Limit -> Maybe Artist -> APIKey -> Lastfm Response
- share :: Artist -> Track -> Recipient -> Maybe Message -> Maybe Public -> APIKey -> SessionKey -> Secret -> Lastfm Response
- unban :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response
- unlove :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response
- updateNowPlaying :: Artist -> Track -> Maybe Album -> Maybe AlbumArtist -> Maybe Context -> Maybe TrackNumber -> Maybe Mbid -> Maybe Duration -> APIKey -> SessionKey -> Secret -> Lastfm Response
Documentation
addTags :: Artist -> Track -> [Tag] -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource
Tag a track using a list of user supplied tags.
ban :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource
Ban a track for a given user profile.
getBuyLinks :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Country -> APIKey -> Lastfm ResponseSource
Get a list of Buy Links for a particular track.
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.
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
getInfo :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> Maybe Username -> APIKey -> Lastfm ResponseSource
Get the metadata for a track on Last.fm.
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.
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.
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.
getTopFans :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> APIKey -> Lastfm ResponseSource
Get the top fans for this track on Last.fm, based on listening data.
getTopTags :: Either (Artist, Track) Mbid -> Maybe Autocorrect -> APIKey -> Lastfm ResponseSource
Get the top tags for this track on Last.fm, ordered by tag count.
love :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource
Love a track for a user profile.
removeTag :: Artist -> Track -> Tag -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource
Remove a user's tag from a track.
scrobble :: (Timestamp, Maybe Album, Artist, Track, Maybe AlbumArtist, Maybe Duration, Maybe StreamId, Maybe ChosenByUser, Maybe Context, Maybe TrackNumber, Maybe Mbid) -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource
Used to add a track-play to a user's profile.
search :: Track -> Maybe Page -> Maybe Limit -> Maybe Artist -> APIKey -> Lastfm ResponseSource
Search for a track by track name. Returns track matches sorted by relevance.
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.
unban :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource
Unban a track for a user profile.
unlove :: Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm ResponseSource
Unlove a track for a user profile.
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.