-
-
Save 1gor/3d8a9da901fab114e40e7723a8bb354c to your computer and use it in GitHub Desktop.
emacs / restclient example
This file contains hidden or 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
:graphql-url = https://api.github.com/graphql | |
:github-token := (auth-source-pass-get "token" "web/github") | |
:headers = << | |
Authorization: Bearer :github-token | |
User-Agent: Emacs | |
# | |
:query-repos := << | |
(graphql-query | |
((viewer | |
(repositories | |
:arguments | |
((first . 3) | |
(orderBy . ((direction . DESC) | |
(field . UPDATED_AT)))) | |
(nodes | |
name | |
pushedAt))))) | |
# | |
POST :graphql-url | |
:headers | |
{ "query": ":query-repos"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment