Skip to content

Instantly share code, notes, and snippets.

@carllerche
Created April 11, 2011 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carllerche/3be71ab4c67754f522e8 to your computer and use it in GitHub Desktop.
Save carllerche/3be71ab4c67754f522e8 to your computer and use it in GitHub Desktop.
(defrecord Campfire [api-key host]
CAMPFIRE ;; one off protocol
(ls-rooms []
(let [resp (http/GET (str host "/rooms.json"))]
(http/await resp)
(http/string resp))))
(defn configure
[api-key host] (Campfire. api-key host))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment