为什么Github的Search Users API没有用户名?

时间:2019-07-07 12:41:07

标签: github github-api

我正在尝试使用GitHub的Search Users API,正如文档中所示,在返回用户列表时,它确实具有用户名

{
  "total_count": 12,
  "incomplete_results": false,
  "items": [
    {
      "login": "mojombo",
      "id": 1,
      "node_id": "MDQ6VXNlcjE=",
      "avatar_url": "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
      "gravatar_id": "",
      "url": "https://api.github.com/users/mojombo",
      "html_url": "https://github.com/mojombo",
      "followers_url": "https://api.github.com/users/mojombo/followers",
      "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions",
      "organizations_url": "https://api.github.com/users/mojombo/orgs",
      "repos_url": "https://api.github.com/users/mojombo/repos",
      "received_events_url": "https://api.github.com/users/mojombo/received_events",
      "type": "User",
      "score": 105.47857
    }
  ]
}

是否存在GitHub不发送名称的特殊原因,因为它实际上是必须存在的基本信息。

在我正在制作的应用中,我正在显示用户列表,并且还应包括用户名称。这是否意味着我必须为用户列表中的每个项目都调用Single User Api才能获得用户名?

0 个答案:

没有答案