Fork me on GitHub
#clj-http
<
2024-01-08
>
Nim Sadeh21:01:16

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

skynet22:01:29

for EDN I do:

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

👀 1