Skip to content

users.followers.rest

lisztli edited this page Apr 27, 2012 · 3 revisions

#GET /users/:userid/followers/

返回用户的关注者

##路径

http://rest.fanfou.com/users/:userid/followers/

##调用方法

GET

##参数:

    |作用       |格式       |字段说明

--------|-----------|-----------|------------ :userid |指定用户id(@~me表示当前登录用户)| |必选 count|返回结果的数量|count=msg_count |可选, 取值范围1至60 page|返回结果的页码|page=page_id |可选

##返回值:

返回用户的关注者

  • 使用方法
curl -X GET "rest.fanfou.com/users/@~me/followers/?oauth_token=oauth_token&page=2&count=2" | python -mjson.tool
  • 返回值
[
    {
        "created_at": "Tue Feb 21 07:49:35 +0000 2012", 
        "description": "", 
        "favourites_count": 0, 
        "followed": true, 
        "followers_count": 0, 
        "following": false, 
        "friends_count": 0, 
        "id": 1116, 
        "location": "", 
        "profile_image_url": "http://avatar.lcff.com/s0/00/01/2w.jpg?1329810575", 
        "profile_image_url_large": "http://avatar.lcff.com/l0/00/01/2w.jpg?1329810575", 
        "protected": false, 
        "screen_name": "Q\u52a0KNV2", 
        "statuses_count": 0, 
        "url": "~lVCpMah5UOI", 
        "website": ""
    }, 
    {
        "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"
    }
]
Clone this wiki locally