-
Notifications
You must be signed in to change notification settings - Fork 70
users.names.rest
lisztli edited this page Apr 26, 2012
·
2 revisions
#GET /users/names/:nickname/
搜索用户
##路径
http://rest.fanfou.com/users/names/:nickname/
##调用方法
GET
##参数:
|作用 |格式 |字段说明
--------|-----------|-----------|------------ :nickname |用户昵称| |必选 count|返回结果的条数|count=user_count |可选 page|返回结果的页码|page=page_id |可选
##返回值:
返回搜索到的用户
- 使用方法
curl -X GET "rest.fanfou.com/users/names/test/?oauth_token=oauth_token&page=2&count=2" | python -mjson.tool
- 返回值
[
{
"created_at": "Sun Sep 14 12:06:44 +0000 2008",
"description": "",
"favourites_count": 0,
"followed": false,
"followers_count": 0,
"following": false,
"friends_count": 0,
"id": 349387,
"location": "",
"profile_image_url": "http://photo.lcff.com/s0/00/00/00.jpg",
"profile_image_url_large": "http://photo.lcff.com/l0/00/00/00.jpg",
"protected": false,
"screen_name": "test",
"statuses_count": 0,
"url": "test1234566789",
"website": ""
},
{
"created_at": "Thu Aug 14 16:43:56 +0000 2008",
"description": "",
"favourites_count": 0,
"followed": false,
"followers_count": 0,
"following": false,
"friends_count": 0,
"id": 308390,
"location": "",
"profile_image_url": "http://avatar.lcff.com/s0/00/00/00.jpg",
"profile_image_url_large": "http://avatar.lcff.com/l0/00/00/00.jpg",
"protected": false,
"screen_name": "test",
"statuses_count": 0,
"url": "testttt",
"website": ""
}
]