module Network.Lastfm.API.Playlist
( addTrack, create
) where
import Control.Monad.Error (runErrorT)
import Network.Lastfm
addTrack :: Playlist -> Artist -> Track -> APIKey -> SessionKey -> Secret -> Lastfm Response
addTrack playlist artist track apiKey sessionKey secret = callAPIsigned secret
[ (#) (Method "playlist.addTrack")
, (#) playlist
, (#) artist
, (#) track
, (#) apiKey
, (#) sessionKey
]
create :: Maybe Title -> Maybe Description -> APIKey -> SessionKey -> Secret -> Lastfm Response
create title description apiKey sessionKey secret = callAPIsigned secret
[ (#) (Method "playlist.create")
, (#) title
, (#) description
, (#) apiKey
, (#) sessionKey
]