Макс
Макс

Reputation: 105

How compose GraphQL query for github

How to present this string as a GraphQL query

curl -H "Authorization: bearer token" https://api.github.com/graphql

Help me please

Upvotes: 0

Views: 164

Answers (1)

VonC
VonC

Reputation: 1329812

You can follow "Forming Calls with GraphQL", which involves "Creating a personal access token for the command line" to get a token.

Your header should then be: Authorization: bearer xxx, with xxx being the token you have generated.

As a concrete example: "Get started with GitHub GraphQL API".

Upvotes: 2

Related Questions