2/remind/unread count/en
(Created page with '{{api_desc_v2_sp_en| host=http://rm.api.weibo.com/2/| uri=remind/unread_count| desc=Get all kinds of unread count of a user.| httpMethod=GET| needAuth=true| level={{Api_L1_en}}| …') |
|||
第2行: | 第2行: | ||
host=http://rm.api.weibo.com/2/| | host=http://rm.api.weibo.com/2/| | ||
uri=remind/unread_count| | uri=remind/unread_count| | ||
− | desc= | + | desc=Return all kinds of unread count of a user.| |
httpMethod=GET| | httpMethod=GET| | ||
needAuth=true| | needAuth=true| | ||
第8行: | 第8行: | ||
rateLimit=false| | rateLimit=false| | ||
params= | params= | ||
− | {{api_args|uid|true|int64|User ID to be | + | {{api_args|uid|true|int64|User ID to be returned.}} |
{{api_args|callback|false|string|JSONP callback function. It is for returning the JS format informations.}}| | {{api_args|callback|false|string|JSONP callback function. It is for returning the JS format informations.}}| | ||
result= | result= |
2012年1月29日 (日) 13:24的最后版本
remind/unread_count
Return all kinds of unread count of a user.
URL
http://rm.api.weibo.com/2/remind/unread_count.json
Supported Formats
JSON
HTTP Request Method
GET
Requires Login
true
See the Login and Authorization Mechanism Statement for login and authorization details.
Requests Count Limitation
Level:Normal
Count Limitation:false
See the Interface Access Rights Statement for the request count limitation details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | false | string | This parameter is not needed when using OAuth.The value of this parameter is the AppKey. |
access_token | false | string | This parameter is required when using OAuth.You will get the access_token after oauth authorization. |
uid | true | int64 | User ID to be returned. |
callback | false | string | JSONP callback function. It is for returning the JS format informations. |
Notes
This is a special interface.Please pay attention to the interface domain.And the interface doesn't support access_token temporarily.
Response
JSON Example
{ "status": 0, "follower": 1, "cmt": 0, "dm": 1, "mention_status": 0, "mention_cmt": 0, "group": 0, "private_group": 0, "notice": 0, "invite": 0, "badge": 0, "photo": 0 }
See the Error Code Description for the error information details.
Field Description
Returned Field | Field Type | Field Description |
---|---|---|
status | int | New weibos unread count |
follower | int | New followers count |
cmt | int | New comments count |
dm | int | New direct messages count |
mention_status | int | New weibos count mentioned me |
mention_cmt | int | New comments count mentioned me |
group | int | Weiqun messages unread count |
private_group | int | Private weiqun messages unread count |
notice | int | New notifications unread count |
invite | int | New invitations unread count |
badge | int | New medals count |
photo | int | Photo album messages unread count |
Others
None
文档更新时间: 2012-01-29