Statuses/unread

跳转到: 导航, 搜索
(创建新页面为 '== statuses/unread == 获取当前用户Web未读消息数,包括@, 评论,私信。 === URL: === http://api.t.sina.com.cn/statuses/unread.format ===格式:=== xml, json …')
 
(返回结果)
第20行: 第20行:
 
XML示例:
 
XML示例:
 
  <?xml version="1.0" encoding="UTF-8"?>
 
  <?xml version="1.0" encoding="UTF-8"?>
<counts>
 
 
   <count>
 
   <count>
  <id>32817222</id>
 
 
   <comments>10</comments>
 
   <comments>10</comments>
 
   <nowiki><rt>21</rt ></nowiki>
 
   <nowiki><rt>21</rt ></nowiki>
  </count>
+
  <mentions>0</mentions>
 +
  <followers>2</followers>
 +
  <dm>0</dm>
 
   <count>
 
   <count>
  <id>214672651</id>
 
  <comments>123</comments>
 
  <nowiki><rt>129</rt ></nowiki>
 
  </count>
 
</counts>
 
  
 
JSON示例:
 
JSON示例:

2010年4月29日 (四) 20:44的版本

目录

statuses/unread

获取当前用户Web未读消息数,包括@, 评论,私信。

URL:

http://api.t.sina.com.cn/statuses/unread.format

格式:

xml, json

是否需要登录:

GET

请求数限制:

true

请求参数

返回结果

XML示例:

<?xml version="1.0" encoding="UTF-8"?>
 <count>
  <comments>10</comments>
  <rt>21</rt >
  <mentions>0</mentions>
  <followers>2</followers>
  <dm>0</dm>
 <count>

JSON示例:

[
 {"id":32817222,
  "comments":0,
  "rt":0},
 {"id":214672651,
  "comments":0,
  "rt":0}
]

使用示例:

需修改appkey

  • xml:

curl -u uid:password http://api.t.sina.com.cn/statuses/counts.xml?source=appkey

  • json:

curl -u uid:password http://api.t.sina.com.cn/statuses/counts.json?source=appkey