Statuses/unread

跳转到: 导航, 搜索
(返回结果)
第2行: 第2行:
 
获取当前用户Web未读消息数,包括@, 评论,私信。
 
获取当前用户Web未读消息数,包括@, 评论,私信。
  
=== URL: ===
+
=== URL ===
 
http://api.t.sina.com.cn/statuses/unread.format
 
http://api.t.sina.com.cn/statuses/unread.format
 
   
 
   
===格式:===
+
===格式===
 
xml, json
 
xml, json
 
   
 
   
=== 是否需要登录: ===
+
=== 是否需要登录 ===
GET
+
true
  
===请求数限制:===
+
===请求数限制===
 
true
 
true
  
第38行: 第38行:
 
需修改appkey
 
需修改appkey
 
* xml:
 
* xml:
curl -u uid:password http://api.t.sina.com.cn/statuses/counts.xml?source=appkey
+
curl -u uid:password http://api.t.sina.com.cn/statuses/unread.xml?source=appkey
  
 
* json:
 
* json:
curl -u uid:password http://api.t.sina.com.cn/statuses/counts.json?source=appkey
+
curl -u uid:password http://api.t.sina.com.cn/statuses/unread.json?source=appkey

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

目录

statuses/unread

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

URL

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

格式

xml, json

是否需要登录

true

请求数限制

true

请求参数

返回结果

XML示例:

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

JSON示例:

[
 {"comments":0,
  "dm":1,
   "mentions":2,
  "followers":3}
]

使用示例:

需修改appkey

  • xml:

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

  • json:

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