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":"表情" }, ...... ]
字段说明
字段名 | 描述 |
---|---|
phrase | 表情使用的替代文字 |
type | 表情类型,image为普通图片表情,magic为魔法表情 |
url | 表情图片存放的位置 |
is_hot | 是否为热门表情 |
order_number | 该表情在系统中的排序号码 |
category | 表情分类 |
Others
None