Last active
July 30, 2022 23:59
-
-
Save typebrook/831bb693269ac01807fc2520e28260d6 to your computer and use it in GitHub Desktop.
A simple github graphql example to fetch user gists #graphql #wip
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
curl -d @- -X POST --header "Authorization: token $(token github)" https://api.github.com/graphql <<EOF | |
{ | |
"query": "{ | |
user(login: \"typebrook\") { | |
gists(last: 50) { | |
nodes { | |
isPublic | |
resourcePath | |
description | |
stargazerCount | |
comments { | |
totalCount | |
} | |
pushedAt | |
createdAt | |
files { | |
name | |
language { | |
name | |
} | |
} | |
} | |
} | |
} | |
}" | |
} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment