Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Token = ByteString
- baseUrl :: Url Https
- mkTokenHeader :: Token -> Option Https
- getHttpResponse' :: (HttpResponse a, MonadHttp m) => Proxy a -> Request -> Manager -> m a
- fixEmptyStringManager :: IO Manager
- fixEmptyString :: Response BodyReader -> IO (Response BodyReader)
- data DELETE2 = DELETE2
- strLength :: String -> Int
help to construct endpoint
type Token = ByteString Source #
ChatWork API Token detail is http://developer.chatwork.com/ja/authenticate.html
mkTokenHeader :: Token -> Option Https Source #
Make HTTP Header to authenticate API Token of ChatWork
Custamize Managaer
getHttpResponse' :: (HttpResponse a, MonadHttp m) => Proxy a -> Request -> Manager -> m a Source #
Helper function that use custamized Manager
fixEmptyString :: Response BodyReader -> IO (Response BodyReader) Source #
if response is no contents, replace "[]". aeson return parse error when response is no content response
DELETE HTTP method with paramater
if want to use Delete HTTP methos with request param, use this type. ref : https://hackage.haskell.org/package/req-0.3.0/docs/Network-HTTP-Req.html#t:DELETE
HttpMethod DELETE2 Source # | |
type AllowsBody DELETE2 Source # | |