Use CURL to Chilkat Source Code Generator

Question

According to the Sonar API documentation at https://docs.sonar.expert/system/api-calls-using-third-party-applications-personal-access-tokens, this is an example of how to run a query to their GraphQL. It looks a little different than your example because all it wants to authenticate is an access token which I already have. Do you have any examples similar to this using vbscript or vb6?

curl -X POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ' \
--data-raw '{"query": "{ me { name username } }"}' \
https://instance.sonar.software/api/graphql

Answer:

Don’t forget to use the Chilkat online tool to generate code from a CURL statement at https://tools.chilkat.io/curlHttp. You can copy the above CURL statement into the online tool, choose your programming language, and generate.

Tags :