Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # clj-http - https://github.com/dakrone/clj-http <code> (let [uri (str "https://mallid.cafe24api.com/api/v2" url "?" (form-encode (merge param {:shop_no 99}))) headers {:headers {"Content-Type" " application/json" "X-Cafe24-Api-Version" "2022-03-01" "X-Cafe24-Client-Id" "XXX"}}] (-> (client/get uri headers) :body (read-str :key-fn keyword))) </code> ## post - https://github.com/dakrone/clj-http#post ### Authentication [[Basic Auth]] <code clojure> (client/get "http://example.com/protected" {:basic-auth ["user" "pass"]}) (client/get "http://example.com/protected" {:basic-auth "user:pass"}) </code> [[Digest Auth]] <code clojure> (client/get "http://example.com/protected" {:digest-auth ["user" "pass"]}) </code> [[NTLM Auth]] <code clojure> (client/get "http://example.com/protected" {:ntlm-auth ["user" "pass" "host" "domain"]}) </code> [[oAuth2]] <code clojure> (client/get "http://example.com/protected" {:oauth-token "secret-token"}) </code> open/clj-http.txt Last modified: 2024/10/05 06:15by 127.0.0.1