clj-http

Nim Sadeh 2024-01-08T21:54:16.844699Z

Should I generally expect this to work for most APIs?

(defn get-conversations
  [user-id]
  (->> (client/get conversations-url (assoc (get-conversations-request user-id)
                                            :headers headers
                                            :coerce :always
                                            :as :clojure
                                            "Content-type" "application/clojure"))
       (:body)))
My project.edn has both cheshire and tools.reader. I confirmed that JSON works

2024-01-08T22:14:29.873059Z

for EDN I do:

{:accept :edn
 :as :auto
 :body ... ; edn string
 :content-type "application/edn"}

👀 1