favorites.create.rest

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

POST /favourites/

收藏指定消息

路径

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

调用方法

POST

参数:

作用 格式 字段说明
statusid 指定消息id 必选

返回值:

返回收藏消息

  • 使用方法
curl -X POST "rest.fanfou.com/favorites/?oauth_token=$oauth_token" -d"statusid=20119452" | python -mjson.tool
  • 返回值
{
    "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": "6666", 
    "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": 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"
}