Github的api调用使用GraphQL

创建计划
2017-05-15 15:20:58
进行中
耗时28天 10时23分20秒
关闭计划
2017-06-13 01:44:18
已完成

随着Github需要统计请求的数据越来越多,我已经不敢再添加新内容了。

动则发送几百个http请求。

好在Github支持GraphQL协议

能够把多个合并到一个请求。抽空学习下这个协议,应用到站点内。

已废弃

需要OAuth验证才能使用GraphQL服务器. 不适合当前的场景

To communicate with the GraphQL server, you'll need an OAuth token with the right scopes.

Follow the steps in "Creating a personal access token for the command line" to create a token. The scopes you require depends on the type of data you're trying to request. For example, select the User scopes to request user data. If you need access to repository information, select the appropriate Repository scopes.

又翻出来了,体验了一会,真是太棒了

大牛们的评论:朕有话说

还没有人评论哦,赶紧抢沙发!