Statuses/reset count/en
目录 |
statuses/reset_count
Reset a kind of unread messageof the authenticating user to 0. Kinds can be reset: 1. comment count, 2 metions count, 3 direct messages count, 4 followings count
URL
http://api.t.sina.com.cn/statuses/reset_count.(json%7Cxml)
Supported Formats
XML/JSON
HTTP Request Method
POST
Requires Authentication
true
See the Authorization Mechanism Statement for authorization details
Requests Count Limitation
false
See the Interface Access Rights Statement for the Request Count Limitaiton details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | true | string | AppKey for the application to identify it. ( This parameter is not needed when using OAuth) |
type | true | int, 1~4 | The kinds that is going to be reset, its value is one of the following: 1 comments count, 2 mentions count, 3 direct messages count, 4 followings count |
Notes
None
Example Request
- XML
- curl -u "username:password" -d "type=1" "http://api.t.sina.com.cn/statuses/reset_count.xml?source=appkey"
- JSON
- curl -u "username:password" -d "type=1" "http://api.t.sina.com.cn/statuses/reset_count.json?source=appkey"
Response
XML Example
<?xml version="1.0" encoding="UTF-8"?> <result>true</result>
JSON Example
{ "result" : true }
Others
None