Statuses/counts
(→statuses/counts) |
(→返回:) |
||
第27行: | 第27行: | ||
<count> | <count> | ||
<id>32817222</id> | <id>32817222</id> | ||
− | <comments | + | <comments>10</comments> |
− | < | + | <rt>21</rt > |
</count> | </count> | ||
<count> | <count> | ||
<id>214672651</id> | <id>214672651</id> | ||
− | <comments | + | <comments>123</comments> |
− | < | + | <rt>129</rt > |
</count> | </count> | ||
</counts> | </counts> |
2009年12月16日 (三) 18:18的版本
目录 |
statuses/counts
批量统计微薄的评论数,转发数.单次最多获取100个。
URL:
http://api.t.sina.com.cn/statuses/counts.format
格式:
xml, json
是否需要登录:
GET
请求数限制:
true, 对用户有限制
调用频率限制:
false
请求参数
- ids. 必填参数. 微薄ID号列表,用逗号隔开
o Example: http://api.t.sina.com.cn/statuses/counts.xml?ids=32817222,214672651
返回:
XML 格式样例(部分内容删减):
<?xml version="1.0" encoding="UTF-8"?> <counts> <count> <id>32817222</id> <comments>10</comments> </count> <count> <id>214672651</id> <comments>123</comments> </count> </counts>
使用示例:
curl -u user:password http://api.t.sina.com.cn/statuses/counts.xml