Skip to content

Instantly share code, notes, and snippets.

@typebrook
Last active July 30, 2022 23:59
Show Gist options
  • Save typebrook/831bb693269ac01807fc2520e28260d6 to your computer and use it in GitHub Desktop.
Save typebrook/831bb693269ac01807fc2520e28260d6 to your computer and use it in GitHub Desktop.
A simple github graphql example to fetch user gists #graphql #wip
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