C/2/datapush/status/en
第39行: | 第39行: | ||
}</pre>| | }</pre>| | ||
resultDes=None| | resultDes=None| | ||
− | useAge=*Use the url: http:// | + | useAge=*Use the url: http://c.api.weibo.com/datapush/status to call the API.The url: https://c.api.weibo.com/2/datapush/status.json is invalid. |
*The IP address to call the API must be one of the IP list provided when created the subscription. Otherwise, the error response ‘Ip is limited’ will be returned. | *The IP address to call the API must be one of the IP list provided when created the subscription. Otherwise, the error response ‘Ip is limited’ will be returned. | ||
*Parameter 'source' and 'access_token' are not needed to pass. | | *Parameter 'source' and 'access_token' are not needed to pass. | | ||
otherInfo=None | otherInfo=None | ||
}}{{#a:showgrade}} | }}{{#a:showgrade}} |
2014年5月14日 (三) 14:44的版本
datapush/status
Connect the API to get the statuses.
URL
https://c.api.weibo.com/2/datapush/status.json
Supported Formats
JSON
HTTP Request Method
GET
Requires Login
False
See the Login and Authorization Mechanism Statement for login and authorization details.
Requests Count Limitation
None
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. |
subid | true | int | Subscription ID (See the specification for more information). |
since_id | false | long | The data ID application hold when disconnected. Weibo Platform will store datas for 5 minutes. Applications can regain datas within 5 minutes since disconnected by since_id parameter. |
Notes
- Use the url: http://c.api.weibo.com/datapush/status to call the API.The url: https://c.api.weibo.com/2/datapush/status.json is invalid.
- The IP address to call the API must be one of the IP list provided when created the subscription. Otherwise, the error response ‘Ip is limited’ will be returned.
- Parameter 'source' and 'access_token' are not needed to pass.
Response
JSON Example
{ "id": 1211260020031346, "text": { "type": "status", "event": "add", "status": { "created_at": "Mon Nov 26 10:25:38 +0800 2012", "id": 3516560159321035, "text": "百度新闻 http://t.cn/zjbRppQ (分享自@百度手机浏览器)", "source": "<a href=\"http://m.weibo.com/web/cellphone.php#android\" rel=\"nofollow\">Android客户端</a>", "favorited": false, "truncated": false, "in_reply_to_status_id": "", "in_reply_to_user_id": "", "in_reply_to_screen_name": "", "geo": null, "mid": "3516560159321035", "user": { … } } }, "match_info":{ //匹配信息 "keyword":"不是", //匹配上的关键词 "uid":0 //匹配上的用户ID } }
See the Error Code Description for the error information details.
Field Description
None
Others
None