module Network.Lastfm.API.Event
( attend, getAttendees, getInfo, getShouts, share, shout
) where
import Network.Lastfm
attend :: Event -> Status -> APIKey -> SessionKey -> Secret -> Lastfm Response
attend event status apiKey sessionKey secret = callAPIsigned secret
[ (#) (Method "event.attend")
, (#) event
, (#) status
, (#) apiKey
, (#) sessionKey
]
getAttendees :: Event -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response
getAttendees event page limit apiKey = callAPI
[ (#) (Method "event.getAttendees")
, (#) event
, (#) page
, (#) limit
, (#) apiKey
]
getInfo :: Event -> APIKey -> Lastfm Response
getInfo event apiKey = callAPI
[ (#) (Method "event.getInfo")
, (#) event
, (#) apiKey
]
getShouts :: Event -> Maybe Page -> Maybe Limit -> APIKey -> Lastfm Response
getShouts event page limit apiKey = callAPI
[ (#) (Method "event.getShouts")
, (#) event
, (#) page
, (#) limit
, (#) apiKey
]
share :: Event -> Recipient -> Maybe Message -> Maybe Public -> APIKey -> SessionKey -> Secret -> Lastfm Response
share event recipient message public apiKey sessionKey secret = callAPIsigned secret
[ (#) (Method "event.share")
, (#) event
, (#) public
, (#) message
, (#) recipient
, (#) apiKey
, (#) sessionKey
]
shout :: Event -> Message -> APIKey -> SessionKey -> Secret -> Lastfm Response
shout event message apiKey sessionKey secret = callAPIsigned secret
[ (#) (Method "event.shout")
, (#) event
, (#) message
, (#) apiKey
, (#) sessionKey
]