hs-twitter-0.2.7: Haskell binding to the Twitter API

Web.Twitter.Post

Synopsis

Documentation

data PostReq Source

Constructors

PostReq 

Fields

prName :: String
 
prVals :: [PostParam]
 

addNameValue :: String -> String -> PostReq -> PostReqSource

addNameValue nm val req augments the request req with a binding for (nm,val). Neither nm nor val are assumed encoded. It leaves it until the serialization phase to fix on how to communicate the binding for the POST request (i.e., via the query portion or in the request's body.)

addQueryNameValue :: String -> String -> PostReq -> PostReqSource

addQueryNameValue nm val req performs same function as addNameValue, but adds the constraint that the binding must be transmitted as part of the query portion of the URL it ends up going out via.

addBodyNameValue :: String -> String -> PostReq -> PostReqSource

addQueryNameValue nm val req performs same function as addNameValue, but adds the constraint that the binding must be transmitted as part of the body of the POST request, forcing the payload to be of MIME type application/x-www-form-urlencoded

addNameFile :: String -> FilePath -> Maybe String -> PostReq -> PostReqSource

addNameFile nm fb mbMimeType req augments the request req with a binding of name nm to the local file fb. It will be slurped in and included in the POST request, as part of a multi-part payload.