favorites.destroy.rest

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

DELETE /favourites/:statusid

取消收藏指定消息(当前用户的收藏)

路径

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

调用方法

DELETE

参数:

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

返回值:

返回取消收藏消息

  • 使用方法
curl -X DELETE "rest.fanfou.com/favorites/20119452?oauth_token=$oauth_token" | python -mjson.tool
  • 返回值
{
    "created_at": "Thu Mar 15 09:30:41 +0000 2012", 
    "favorited": "false", 
    "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": 71, 
        "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"
}