Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions to sign HTTP requests with oAuth
- signRequest :: FilePath -> Request -> IO Request
- signRequestMem :: Config -> Request -> IO Request
- mkConfig :: FilePath -> IO Config
- mkConfigToml :: FilePath -> IO Config
- oAuthMem :: ByteString -> ByteString -> OAuth
- credentialMem :: ByteString -> ByteString -> Credential
Documentation
signRequest :: FilePath -> Request -> IO Request Source #
Sign a request using your OAuth dev token, as stored in a config file. Uses the IO monad because signatures require a timestamp
signRequestMem :: Config -> Request -> IO Request Source #
Sign a request using a Config
object, avoiding the need to read token/key from file
mkConfig :: FilePath -> IO Config Source #
Given a filepath, parse the contents of the file and return a configuration.
:: ByteString | API key |
-> ByteString | API secret |
-> OAuth |
Create an OAuth api key from two ByteStrings.
:: ByteString | Token |
-> ByteString | Token secret |
-> Credential |