C/2/attitudes/create/biz

跳转到: 导航, 搜索

attitudes/create/biz

发表或更新一条表态。

URL

https://c.api.weibo.com/2/attitudes/create/biz.json

支持格式

JSON

HTTP请求方式

POST

是否需要登录


关于登录授权,参见 如何登录授权

访问授权限制


请求所有商业接口:

    • 50000次/小时/IP;

请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
id true int64 需要表态的微博ID。
attitude false string 表态内容,表态内容,默认为heart。heart(赞);happy(喜);sad(悲);surprise(惊);angry(怒)。
attitude_type false int 表态类型,默认为1。1(赞);2(喜);3(惊);4(悲);5(怒)。
is_encoded false int 返回结果是否转义,0:不转义,1:转义,默认为0。

注意事项

返回结果

JSON示例

//成功返回
{
    "id": 3479706106103106,
    "attitude": "smile",
    "last_attitude": "smile",
    "created_at": "Thu Aug 16 17:40:44 +0800 2012",
    "source": "<a href=\"http://meyou.weibo.com\" rel=\"nofollow\">密友</a>",
    "user": {
        ...
    },
    "status": {
        ...
    }
}
 
//失败返回:
{
    "request": "/2/attitudes/create.json",
    "error_code": "243XX",
    "error": "error message."
}

关于错误返回值与错误代码,参见 错误代码说明

字段说明

其他



Language: [[{{{2/uri}}}|中文]]


文档更新时间: 2019-03-11