tweet-hs-1.0.2.1: Command-line tool for twitter

Safe HaskellNone
LanguageHaskell2010

Web.Tweet.Sign

Description

Functions to sign HTTP requests with oAuth

Synopsis

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.

oAuthMem Source #

Arguments

:: ByteString

API key

-> ByteString

API secret

-> OAuth 

Create an OAuth api key from two ByteStrings.

credentialMem Source #

Arguments

:: ByteString

Token

-> ByteString

Token secret

-> Credential