Guest User

clj-http

a guest
Apr 29th, 2016
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn get-info
  2. "Get user info"
  3. [id]
  4. (log/debug "-> get-info")
  5. (let [data (www/get (format "%s/users/%s" conf/API id) {:accept :json})
  6. info (parse-string (:body data) true)]
  7. (println info)
  8. info))
RAW Paste Data