0

How to present this string as a GraphQL query

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

Help me please

Макс
  • 95
  • 4

1 Answers1

2

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".

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250