Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rest 是否可以使用指定的属性扩展GitHub API搜索结果?_Rest_Github_Github Api - Fatal编程技术网

Rest 是否可以使用指定的属性扩展GitHub API搜索结果?

Rest 是否可以使用指定的属性扩展GitHub API搜索结果?,rest,github,github-api,Rest,Github,Github Api,我正在进行用户搜索,但GitHub的结果并不包含我需要的所有信息 例如,在使用请求搜索位于纽约的用户时: GEThttps://api.github.com/search/users?q=location:“纽约” 我得到了如下回复: { "total_count": 58317, "incomplete_results": false, "items": [ { "login": "ry", "id": 80, "node_id": "M

我正在进行用户搜索,但GitHub的结果并不包含我需要的所有信息

例如,在使用请求搜索位于纽约的用户时:

GEThttps://api.github.com/search/users?q=location:“纽约”

我得到了如下回复:

{
  "total_count": 58317,
  "incomplete_results": false,
  "items": [
    {
      "login": "ry",
      "id": 80,
      "node_id": "MDQ6VXNlcjgw",
      "avatar_url": "https://avatars1.githubusercontent.com/u/80?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/ry",
      "html_url": "https://github.com/ry",
      "followers_url": "https://api.github.com/users/ry/followers",
      "following_url": "https://api.github.com/users/ry/following{/other_user}",
      "gists_url": "https://api.github.com/users/ry/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/ry/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/ry/subscriptions",
      "organizations_url": "https://api.github.com/users/ry/orgs",
      "repos_url": "https://api.github.com/users/ry/repos",
      "events_url": "https://api.github.com/users/ry/events{/privacy}",
      "received_events_url": "https://api.github.com/users/ry/received_events",
      "type": "User",
      "site_admin": false,
      "score": 1.0
    },
    ...
  ]
}
我想找回
public\u repos
followers
的计数

发送用户查询时,此信息可用:

GEThttps://api.github.com/users/{login}

是否有方法使用指定属性扩展搜索结果?

您可以使用以下请求:

{
搜索(查询:“位置:\“纽约\”,类型:用户,第一个:100){
用户数
边缘{
节点{
…基于用户{
登录
追随者{
总数
}
存储库(隐私:公共){
总数
}
}
}
}
}
}

{
  ...
  "public_repos": 1331,
  "followers": 262,
  ...
}