Emotions/en
目录 |
emotions
Return all the relative information of Sina Weibo official emotions and magic emotions, including phrases, emotion kind, emtion category, whether it is hot etc.
URL
http://api.t.sina.com.cn/emotions.(json%7Cxml)
Supported Formats
XML/JSON
HTTP Request Method
GET
Requires Authentication
false
See the Authorization Mechanism Statement for authorization details
Requests Count Limitation
false
See the Interface Access Rights Statement for the Request Count Limitaiton details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | true | string | AppKey for the application to identify it. ( This parameter is not needed when using OAuth) |
type | false | string, default is "face" | Emotion type. “face”: common emotion. “ani”: magic emotion. “cartoon”: cartoon emotion. |
language | false | string, default is "cnname" | Language type, “cnname”: simplified Chinese, “twname”: traditional Chinese |
Notes
None
Example Request
- XML
- curl -u "username:password" "http://api.t.sina.com.cn/emotions.xml?source=appkey"
- JSON
- curl -u "username:password" "http://api.t.sina.com.cn/emotions.json?source=appkey"
Response
XML Example
<?xml version="1.0" encoding="UTF-8"?> <emotions> <emtion> <phrase>[嘻嘻]</phrase> <type>image</type> <url>http://timg.sjs.sinajs.cn/miniblog2style/images/common/face/ext/normal/c2/tooth.gif</url> <is_hot>false</is_hot> <is_common>true</is_common> <order_number>96</order_number>\ <category>表情</category> </emotion> <emtion> <phrase>[呵呵]</phrase> <type>image</type> <url>http://timg.sjs.sinajs.cn/miniblog2style/images/common/face/ext/normal/eb/smile.gif</url> <is_hot>false</is_hot> <is_common>true</is_common> <order_number>95</order_number>\ <category>表情</category> </emotion> ...... </emotions>
JSON Example
[ { "phrase":"[嘻嘻]", "type":"image", "url":"http://timg.sjs.sinajs.cn/miniblog2style/images/common/face/ext/normal/c2/tooth.gif", "is_hot":false, "is_common":true, "order_number":96, "category":"表情" }, { "phrase":"[呵呵]", "type":"image", "url":"http://timg.sjs.sinajs.cn/miniblog2style/images/common/face/ext/normal/eb/smile.gif", "is_hot":false, "is_common":true, "order_number":95, "category":"表情" }, ...... ]
Field Description
Field | Description |
---|---|
phrase | text described the emotion |
type | type of the emotion. image means normal emotion, magic means magic emotion |
url | URL where the image stored. |
is_hot | Whether is a hot emotion. |
order_number | sequence number of the emotion in system |
category | category |
Others
None