statuses.user timeline.rest

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

GET /statuses/user_timeline/:userid/

显示用户发出的消息

路径

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

调用方法

GET

参数:

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

返回值:

显示用户发出的消息

  • 使用方法
curl -X GET "rest.fanfou.com/statuses/user_timeline/porco/?oauth_token=oauth_token&count=2&max_id=20119925&since_id=20119570" | python -mjson.tool
  • 返回值
[
    {
        "created_at": "Fri Mar 23 10:38:16 +0000 2012", 
        "favorited": "false", 
        "id": 20119572, 
        "photo": {
            "imageurl": "http://photo.lcff.com/s0/00/04/07_515467.jpg", 
            "largeurl": "http://photo.lcff.com/n0/00/04/07_515467.jpg", 
            "photourl": "http://lcff.com/photo/Ce6EQCyqQXo", 
            "thumburl": "http://photo.lcff.com/t0/00/04/07_515467.jpg"
        }, 
        "text": "\u6d4b\u8bd5\u6d4b\u8bd5", 
        "user": {
            "created_at": "Sun Jun 10 02:45:39 +0000 2007", 
            "description": "", 
            "favourites_count": 0, 
            "followed": true, 
            "followers_count": 16, 
            "following": false, 
            "friends_count": 0, 
            "id": 170041, 
            "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": "porco", 
            "statuses_count": 2322, 
            "url": "porco", 
            "website": ""
        }, 
        "wid": "MP4Tn4DaBv4"
    }, 
    {
        "created_at": "Fri Mar 23 10:28:21 +0000 2012", 
        "favorited": "false", 
        "id": 20119571, 
        "text": "\u518d\u6d4b\u8bd5\u868a\u5b50", 
        "user": {
            "created_at": "Sun Jun 10 02:45:39 +0000 2007", 
            "description": "", 
            "favourites_count": 0, 
            "followed": true, 
            "followers_count": 16, 
            "following": false, 
            "friends_count": 0, 
            "id": 170041, 
            "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": "porco", 
            "statuses_count": 2322, 
            "url": "porco", 
            "website": ""
        }, 
        "wid": "jSA75ZiIKrg"
    }
]