Skip to content

Instantly share code, notes, and snippets.

@AmirHooshangi
Created December 2, 2014 15:26
Show Gist options
  • Save AmirHooshangi/e9aa064ad396fe26e2ad to your computer and use it in GitHub Desktop.
Save AmirHooshangi/e9aa064ad396fe26e2ad to your computer and use it in GitHub Desktop.
(defun search-github()
(request
"https://api.github.com/search/repositories"
:params '(("q" . "*.g8" ) ("sort" . "stars") ("order" . "desc"))
:parser 'json-read
:success (function*
(lambda (&key data &allow-other-keys)
(let* ((items (assoc-default 'items data)))
(items))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment