statuses.update.rest

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

POST /statuses/

发送消息、图片

路径

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

调用方法

POST

参数:

作用 格式 字段说明
status 消息内容 如果上传图片此项为可选
location 用户当前位置 可选
phpot 用户上传图片文件 可选

返回值:

返回消息内容

  • 使用方法
curl -X POST "rest.fanfou.com/statuses/?oauth_token=oauth_token" --form photo=@/home/liszt/Desktop/upload/j8_1736.jpg | python -mjson.tool
  • 返回值
{
    "created_at": "Wed Apr 25 07:51:28 +0000 2012", 
    "favorited": "false", 
    "id": 20120044, 
    "photo": {
        "imageurl": "http://photo.lcff.com/s0/00/04/33_458810.jpg", 
        "largeurl": "http://photo.lcff.com/n0/00/04/33_458810.jpg", 
        "photourl": "http://lcff.com/photo/di1kep6ElkY", 
        "thumburl": "http://photo.lcff.com/t0/00/04/33_458810.jpg"
    }, 
    "text": "\u4e0a\u4f20\u4e86\u65b0\u7167\u7247", 
    "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": 6646, 
        "url": "moon", 
        "website": "http://nimei.org"
    }, 
    "wid": "IisKeA4NEes"
}