-
Notifications
You must be signed in to change notification settings - Fork 70
users.friends.rest
lisztli edited this page Apr 26, 2012
·
2 revisions
#GET /users/:userid/friends/
返回用户的好友
##路径
http://rest.fanfou.com/users/:userid/friends/
##调用方法
GET
##参数:
|作用 |格式 |字段说明
--------|-----------|-----------|------------ :userid |指定用户id(@~me表示当前登录用户)| |必选 count|返回结果的数量|count=msg_count |可选, 取值范围1至60 page|返回结果的页码|page=page_id |可选
##返回值:
返回用户的好友
- 使用方法
curl -X GET "rest.fanfou.com/users/@~me/friends/?oauth_token=oauth_token&page=2&count=2" | python -mjson.tool
- 返回值
[
{
"created_at": "Mon Oct 06 11:03:08 +0000 2008",
"description": "",
"favourites_count": 54,
"followed": true,
"followers_count": 7,
"following": true,
"friends_count": 27,
"id": 381658,
"location": "",
"profile_image_url": "http://avatar.lcff.com/s0/00/bm/pt.jpg?1331795829",
"profile_image_url_large": "http://avatar.lcff.com/l0/00/bm/pt.jpg?1331795829",
"protected": true,
"screen_name": "marcher.\u55ef\u54fc",
"statuses_count": 959,
"url": "zengke",
"website": "http://aaaa.com/tt"
},
{
"created_at": "Sat Jun 02 09:31:28 +0000 2007",
"description": "A census taker once tried to test me. I ate his liver with some fava beans and a nice Chianti.",
"favourites_count": 1,
"followed": true,
"followers_count": 1601,
"following": true,
"friends_count": 1086,
"id": 138996,
"location": "\u4e91\u5357 \u6606\u660e",
"profile_image_url": "http://avatar.lcff.com/s0/00/47/qm.jpg?1183313264",
"profile_image_url_large": "http://avatar.lcff.com/l0/00/47/qm.jpg?1183313264",
"protected": false,
"screen_name": "\u548c\u83dc\u5934",
"statuses_count": 1,
"url": "\u548c\u83dc\u5934",
"website": "http://www.hecaitou.net"
}
]