Last active
March 18, 2016 22:47
-
-
Save christianromney/f4daf228c5b89d6def62 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
(def github-repositories-url "https://api.github.com/search/repositories") | |
(defn repositories-req [language] | |
(go (let [response (<! (http/get github-repositories-url | |
{:with-credentials? false | |
:query-params {"q" (str "language:" language) | |
"sort" "stars" | |
"order" "desc"}}))] | |
;; just *use* the value inside this block... | |
(println (get-in response [:body :items])))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment