After graphql with this tutorial, I needed to access github graphql using curl for testing. I tried this simple command
curl -i -H "Authorization: bearer myGithubAccessToken" -X POST -d '{"query": "query {repository(owner: "wso2", name: "product-is") {description}}"}' https://api.github.com/graphql
but it gives me
JSON parsing problems
what am I doing wrong I spent almost 2 hours trying to figure it out and tried different examples, but none of them worked. Please kindly help me solve this problem.
github curl graphql
Kasun Siyambalapitiya Feb 03 '17 at 9:38 on 2017-02-03 09:38
source share