favorites.list.rest

lisztli edited this page Apr 26, 2012 · 2 revisions
Clone this wiki locally

GET /favourites/user_timeline/:userid/

浏览指定用户收藏消息

路径

http://rest.fanfou.com/favourites/user_timeline/:userid/

调用方法

GET

条件限制

用户未设置隐私或用户为登录用户好友

参数:

作用 格式 字段说明
:userid 指定用户id(@~me表示当前登录用户) 必选,必须带末尾的'/'
count 返回消息的条数 count=msg_count 可选, 取值范围1至60
page 返回结果的页码 page=page_id 可选

返回值:

返回收藏消息

  • 使用方法
curl -X GET "rest.fanfou.com/favorites/user_timeline/@~me/?oauth_token=$oauth_token&count=2&page=2" | python -mjson.tool
  • 返回值
[
    {
        "created_at": "Mon Apr 16 06:07:57 +0000 2012", 
        "favorited": "true", 
        "id": 20119821, 
        "text": "test merge from apiv2", 
        "user": {
            "created_at": "Sat May 12 15:58:58 +0000 2007", 
            "description": "my_desc", 
            "favourites_count": 70, 
            "followed": false, 
            "followers_count": 622, 
            "following": false, 
            "friends_count": 155, 
            "id": 113412, 
            "location": "Peking", 
            "profile_image_url": "http://avatar.lcff.com/s0/00/3e/r4.jpg?1334140470", 
            "profile_image_url_large": "http://avatar.lcff.com/l0/00/3e/r4.jpg?1334140470", 
            "protected": false, 
            "screen_name": "\u7a46\u8363\u5747\u5747\u5747", 
            "statuses_count": 6643, 
            "url": "moon", 
            "website": "http://nimei.org"
        }, 
        "wid": "g3r4L9PNMeo"
    }, 
    {
        "created_at": "Thu Mar 15 09:30:41 +0000 2012", 
        "favorited": "true", 
        "id": 20119452, 
        "photo": {
            "imageurl": "http://photo.lcff.com/s0/00/03/yg_464265.jpg", 
            "largeurl": "http://photo.lcff.com/n0/00/03/yg_464265.jpg", 
            "photourl": "http://lcff.com/photo/o_xAEvfiSxo", 
            "thumburl": "http://photo.lcff.com/t0/00/03/yg_464265.jpg"
        }, 
        "text": "\u4e0a\u4f20\u4e86\u65b0\u7167\u7247", 
        "user": {
            "created_at": "Sat May 12 15:58:58 +0000 2007", 
            "description": "my_desc", 
            "favourites_count": 70, 
            "followed": false, 
            "followers_count": 622, 
            "following": false, 
            "friends_count": 155, 
            "id": 113412, 
            "location": "Peking", 
            "profile_image_url": "http://avatar.lcff.com/s0/00/3e/r4.jpg?1334140470", 
            "profile_image_url_large": "http://avatar.lcff.com/l0/00/3e/r4.jpg?1334140470", 
            "protected": false, 
            "screen_name": "\u7a46\u8363\u5747\u5747\u5747", 
            "statuses_count": 6643, 
            "url": "moon", 
            "website": "http://nimei.org"
        }, 
        "wid": "UZWlZQBZakk"
    }
]