Safe Haskell | None |
---|
Request sending and Response parsing
- newtype Secret = Secret Text
- sign :: Secret -> Request f Sign -> Request f Ready
- class Supported f where
- type Response f
- lastfm :: Supported f => Request f Ready -> IO (Response f)
- lastfm_ :: Supported f => Request f Ready -> IO ()
- lastfm' :: Supported f => (Proxy f -> ByteString -> ResponseHeaders -> a) -> R f -> IO a
- finalize :: Supported f => Request f Ready -> R f
Sign Request
Signing is important part of every authentication requiring API request. Basically, every such request is appended with md5 footprint of its arguments as described at http://www.last.fm/api/authspec#8
Get Response
Internal
lastfm' :: Supported f => (Proxy f -> ByteString -> ResponseHeaders -> a) -> R f -> IO aSource