statuses.mentions.rest

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

GET /statuses/mentions/

显示提到当前用户的消息

路径

http://rest.fanfou.com/statuses/mentions/

调用方法

GET

参数:

作用 格式 字段说明
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/mentions/?oauth_token=oauth_token&count=4&max_id=20119896&since_id=20119735" | python -mjson.tool
  • 返回值
[
    {
        "created_at": "Thu Apr 19 03:32:58 +0000 2012", 
        "favorited": "false", 
        "id": 20119895, 
        "text": "@\u7a46\u8363\u5747\u5747\u5747 www", 
        "user": {
            "created_at": "Mon Oct 06 11:03:08 +0000 2008", 
            "description": "<script >alert(2);</script>", 
            "favourites_count": 54, 
            "followed": true, 
            "followers_count": 7, 
            "following": true, 
            "friends_count": 27, 
            "id": 381658, 
            "location": "\u5929\u6d25", 
            "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": 952, 
            "url": "zengke", 
            "website": "http://aaaa.com/tt"
        }, 
        "wid": "Qskwy4kmlu8"
    }, 
    {
        "created_at": "Mon Apr 16 06:08:40 +0000 2012", 
        "favorited": "false", 
        "id": 20119825, 
        "repost_status": {
            "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": 72, 
                "followed": false, 
                "followers_count": 622, 
                "following": false, 
                "friends_count": 154, 
                "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"
        }, 
        "text": "\u8f6c@\u7a46\u8363\u5747\u5747\u5747 test merge from apiv2", 
        "user": {
            "created_at": "Mon Oct 06 11:03:08 +0000 2008", 
            "description": "<script >alert(2);</script>", 
            "favourites_count": 54, 
            "followed": true, 
            "followers_count": 7, 
            "following": true, 
            "friends_count": 27, 
            "id": 381658, 
            "location": "\u5929\u6d25", 
            "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": 952, 
            "url": "zengke", 
            "website": "http://aaaa.com/tt"
        }, 
        "wid": "-jK3ggUKMnI"
    }
]