C/2/attitudes/create/biz-en

跳转到: 导航, 搜索

attitudes/create/biz

post an attitude.

URL

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

Supported Formats

JSON

HTTP Request Method

POST

Requires Login

true
See the Login and Authorization Mechanism Statement for login and authorization details.

Requests Count Limitation


Request all APIs:

    • 50000/hour/IP;

Request Parameters

  Requires Type and Range Description
source false string This parameter is not needed when using OAuth.The value of this parameter is the AppKey.
access_token false string This parameter is required when using OAuth.You will get the access_token after oauth authorization.
id true int64 Weibo id that needs to post an attittude.
attitude false string Content of attitude,inlcuding heart,happy,sad,surprise,angry.The default value is heart.
attitude_type false int Type of attitude,1:heart, 2: happy, 3: suprise, 4: sad, 5: angry. The default value is 1.
is_encoded false int Whether the returned content be escaped. 0: not escaped, 1: escaped.

Notes

none

Response

JSON Example

//sucessful
{
    "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": {
        ...
    }
}
 
//falied
{
    "request": "/2/attitudes/create.json",
    "error_code": "243XX",
    "error": "error message."
}

See the Error Code Description for the error information details.

Field Description

none

Others

none

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


文档更新时间: 2018-05-04