friendships.destroy.rest

lisztli edited this page Apr 27, 2012 · 3 revisions
Clone this wiki locally

DELETE /friendships/:userid

删除好友

路径

http://rest.fanfou.com/friendships/:userid

调用方法

DELETE

参数:

作用 格式 字段说明
:userid 指定用户id 必选

返回值:

返回用户信息

  • 使用方法
curl -X DELETE "rest.fanfou.com/friendships/porco?oauth_token=$oauth_token" | python -mjson.tool
  • 返回值
{
    "created_at": "Sun Jun 10 02:45:39 +0000 2007", 
    "description": "", 
    "favourites_count": 0, 
    "followed": true, 
    "followers_count": 17, 
    "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": ""
}