Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The GraphQL API works just as well with curl. There's no getting around the fact that you need to pass a query text but assuming you put the query in a file the curl syntax is identical to the REST API:

   curl https://api.github.com/graphql -H "Authorization: bearer $TOKEN" --data @query.graphql


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: