-
-
Save carllerche/3be71ab4c67754f522e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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