Skip to content

Instantly share code, notes, and snippets.

@christianromney
Last active March 18, 2016 22:47
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 christianromney/f4daf228c5b89d6def62 to your computer and use it in GitHub Desktop.
Save christianromney/f4daf228c5b89d6def62 to your computer and use it in GitHub Desktop.
(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