1

例如,对于 user: django,我想通过 github-api 检索的 url 不是

https://github.com/django

http://www.djangoproject.com/

如下图红色椭圆所示:

在此处输入图像描述

用户搜索 api 不会在响应中返回此 url。

4

1 回答 1

2

从服务返回的数据如下:

https://api.github.com/users/django

{
  "public_gists": 0,
  "type": "Organization",
  "followers": 240,
  "login": "django",
  "created_at": "2008-10-06T19:43:18Z",
  "html_url": "https://github.com/django",
  "avatar_url": "https://secure.gravatar.com/avatar/fd542381031aa84dca86628ece84fc07?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-org-420.png",
  "company": null,
  "email": null,
  "blog": "http://www.djangoproject.com/",
  "following": 0,
  "name": "Django",
  "location": "Internet",
  "url": "https://api.github.com/orgs/django",
  "id": 27804,
  "public_repos": 49
} 

如您所见,该 URL 在博客字段中。

于 2012-10-24T00:21:05.137 回答