例如,对于用户:django
,我想通过github-api检索的网址不是
https://github.com/django
但是
http://www.djangoproject.com/
如下面红色椭圆所示:
用户搜索API不会在响应中返回此网址。
答案 0 :(得分: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
}
如您所见,该网址位于博客字段中。