简体   繁体   English

如何为 github 编写 GraphQL 查询

[英]How compose GraphQL query for github

How to present this string as a GraphQL query如何将此字符串呈现为 GraphQL 查询

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

Help me please请帮帮我

You can follow " Forming Calls with GraphQL ", which involves " Creating a personal access token for the command line " to get a token.您可以按照“使用 GraphQL 进行调用”,其中涉及“ 为命令行创建个人访问令牌”来获取令牌。

Your header should then be: Authorization: bearer xxx , with xxx being the token you have generated.您的标头应该是: Authorization: bearer xxx ,其中xxx是您生成的令牌。

As a concrete example: " Get started with GitHub GraphQL API ".作为一个具体的例子:“ 开始使用 GitHub GraphQL API ”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM