After referring this guide I needed to access the github graphql
by using curl
for a testing purpose. 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
problems parsing JSON
what I am doing wrong. I spent nearly 2 hours trying to figure it and tried different examples but none of them worked. Can you please be kind enough help me resolve this
You just need to escape the double quotes that are inside the JSON as the query
If you want your queries to stay nice and multiline, you may do like this: