Statuses/reset count

跳转到: 导航, 搜索
(创建新页面为 '==Statuses/ reset_count== 设置某个用户某个新消息的未读数为0 {{api_url|statuses/reset_count}} {{api_format|xml,json}} {{api_req|GET|True|True}} 参数:type (1-…')
 
(Statuses/ reset_count)
第1行: 第1行:
 
==Statuses/ reset_count==
 
==Statuses/ reset_count==
设置某个用户某个新消息的未读数为0
+
设置某个用户某个新消息的未读数为0,失败时返回错误码400
 
{{api_url|statuses/reset_count}}
 
{{api_url|statuses/reset_count}}
 
{{api_format|xml,json}}
 
{{api_format|xml,json}}
{{api_req|GET|True|True}}
+
{{api_req|POST|True|False}}
 
+
===请求参数===
 
+
*type 需要清零的计数类别,值为下列四个之一:1--评论数,2--@数,3--私信数,4--关注我的数。
 
+
===返回结果===
参数:type (1--评论数、2--@数、3--私信数、4--关注我的数)
+
====XML====
返回值:
+
<pre>
json格式:{"result":true}
+
<?xml version="1.0" encoding="UTF-8"?>
xml格式:<?xml version="1.0" encoding="UTF-8"?><result>true</result>
+
<result>true</result>
失败时返回:400
+
</pre>
是否需要认证:true
+
====Json====
参数:type(值:comment/mention/dm/follower…)值以后可以再添加
+
<pre>
返回值:是否成功(true、false)
+
{"result":true}
 +
</pre>

2010年9月14日 (二) 15:11的版本

目录

Statuses/ reset_count

设置某个用户某个新消息的未读数为0,失败时返回错误码400

URL

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

格式

xml,json

HTTP请求方式

POST

是否需要登录

True

请求数限制

False

关于请求数限制,参见接口访问权限说明

请求参数

  • type 需要清零的计数类别,值为下列四个之一:1--评论数,2--@数,3--私信数,4--关注我的数。

返回结果

XML

<?xml version="1.0" encoding="UTF-8"?>
<result>true</result>

Json

{"result":true}