Statuses/counts

跳转到: 导航, 搜索
(statuses/counts)
(返回:)
第27行: 第27行:
 
   <count>
 
   <count>
 
   <id>32817222</id>
 
   <id>32817222</id>
   <comments type="integer">10</comments>
+
   <comments>10</comments>
   <reports type="integer">21</reports >
+
   <rt>21</rt >
 
   </count>
 
   </count>
 
   <count>
 
   <count>
 
   <id>214672651</id>
 
   <id>214672651</id>
   <comments type="integer">123</comments>
+
   <comments>123</comments>
   <reports type="integer">129</reports >
+
   <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>
  21
 </count>
 <count>
  <id>214672651</id>
  <comments>123</comments>
  129
 </count>
</counts>

使用示例:

curl -u user:password http://api.t.sina.com.cn/statuses/counts.xml