(request cmd
params
&
{:keys [appid url debug? token]
:or {appid (System/getProperty "waimai.fengniao.appid")
token (System/getProperty "waimai.fengniao.token")
url (System/getProperty
"waimai.fengniao.apiurl"
"https://open-anubis.ele.me/anubis-webapi/v2/")
debug? (= (System/getProperty "waimai.debug") "true")}
:as opts})
请求蜂鸟api
请求蜂鸟api
(request-token
&
{:keys [appid secret debug? url]
:or {appid (System/getProperty "waimai.fengniao.appid")
secret (System/getProperty "waimai.fengniao.secret")
url (System/getProperty
"waimai.fengniao.tokenurl"
"https://open-anubis.ele.me/anubis-webapi/get_access_token")
debug? (= (System/getProperty "waimai.debug") "true")}
:as opts})
获取token
获取token
(wrap-payload data
&
{:keys [appid token debug?]
:or {appid (System/getProperty "waimai.fengniao.appid")
token (System/getProperty "waimai.fengniao.token")
debug? (= (System/getProperty "waimai.debug") "true")}})
包装api的payload
包装api的payload
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close