libstackexchange:StackExchange API接口

时间:2021-05-13 12:17:08
【文件属性】:
文件名称:libstackexchange:StackExchange API接口
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-13 12:17:08
Haskell libstackexchange Haskell接口到 ##入门 您通过Request来与StackExchange API服务器进行通信:相当简单的数据类型,包含服务器主机名,API调用路径,查询参数等。 简单的请求将是这样的: request = questions 是的,那很简单。 接下来, Request是一个Monoid 。 这意味着您可以轻松构造和重用任意复杂的请求: common = site " * " <> key " 12345678 " questions' = questions <> common answers' = answers <> common 要获得请求的响应,您需要将其发送到Stack Exchange: response = askSE $ questions' 验证 某些API调用需要身份验证。 主要目标是通过相当
【文件预览】:
libstackexchange-master
----LICENSE(1KB)
----src()
--------Network()
----Setup.hs(46B)
----examples()
--------rep-watcher.hs(599B)
--------badges-watcher.hs(870B)
--------server-side-authentication.hs(1KB)
----.gitignore(38B)
----doctests.hs(171B)
----libstackexchange.cabal(2KB)
----README.md(3KB)

网友评论