C/2/datapush/status

跳转到: 导航, 搜索
第1行: 第1行:
{{Api_desc_business_en|
+
{{Api_desc_business|
 
uri=datapush/status|
 
uri=datapush/status|
desc=Connect the API to get the statuses.|
+
desc=调用该接口进行连接,接收微博数据。|
 
httpMethod=GET|
 
httpMethod=GET|
 
needAuth=False|
 
needAuth=False|
rateLimit=None|
+
rateLimit=|
params={{api_args|subid|true|int|Subscription ID (See the [[specification ]] for more information).}}
+
params={{api_args|subid|true|int|订阅ID([[详情]])}}
{{api_args|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.}}
+
{{api_args|since_id|false|long|上次连接断开时的数据ID。保存断开后五分钟内的数据,可以通过since_id获取断开五分钟内的数据}}
 
|
 
|
 
result=
 
result=
第35行: 第35行:
 
}</pre>|
 
}</pre>|
 
resultDes=None|
 
resultDes=None|
useAge=*Use the url: http://180.149.153.38/datapush/status or http://180.149.153.39/datapush/status to call the API.The url: https://c.api.weibo.com/2/datapush/status.json is invalid.
+
useAge=*请使用url: http://180.149.153.38/datapush/status http://180.149.153.39/datapush/status请求该接口。url: https://c.api.weibo.com/2/datapush/status.json暂不支持;
*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.
+
*请求该接口的IP必须在此订阅的IP白名单中,否则无法请求该接口;
*Parameter 'source' and 'access_token' are not needed to pass.  |
+
*该接口不需要登录认证,不需要传入source、access_token参数;|
 
otherInfo=None
 
otherInfo=None
 
}}{{#a:showgrade}}
 
}}{{#a:showgrade}}

2013年10月14日 (一) 12:19的版本

datapush/status

调用该接口进行连接,接收微博数据。

URL

https://c.api.weibo.com/2/datapush/status.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录

False
关于登录授权,参见 如何登录授权

访问授权限制


请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
subid true int 订阅ID(详情)。
since_id false long 上次连接断开时的数据ID。保存断开后五分钟内的数据,可以通过since_id获取断开五分钟内的数据

注意事项

返回结果

JSON示例

{
    "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": {
                …
            }
            
        }
    }
}

关于错误返回值与错误代码,参见 错误代码说明

字段说明

None

其他

None

Language: [[{{{2/uri}}}|中文]]


api评价