微博开放平台
微连接
移动应用
网站接入
电商服务商
电商商家
数据服务
数据服务
合作伙伴
微博支付
轻应用
粉丝服务
文档
推广
我的应用
登录
weibo
开发文档
首页
平台政策与指引
概述
平台公约
新手指南
开发者协议
应用运营管理规范
微连接分级管理办法
应用审核产品指南
应用安全开发注意事项
平台应用设计规范
微服务接入指南
微博登录接入
用微博帐号登录
授权机制
移动应用接入
移动应用介绍
移动应用SSO授权
微博Deep Link
媒体接入平台
头条文章开放接口
视频上传开放接口
电商接入平台
电商服务商接入
电商商家端接入
电商平台能力接口
粉丝服务平台
粉丝服务平台
新手接入指南
微信开发者迁移指南
接收消息
发送消息
自定义菜单
用户管理
生成带参数的二维码
Fans Service Platform
商业接口
商业数据接入指南
订阅服务手册(中文版)
订阅服务手册(英文版)
商业接口-REST API
商业数据常见问题
网站接入
网站接入介绍
微博API
微博API
接口访问频次权限
资源下载
SDK
微博标识下载
常见问题
联系我们
工具箱
链入页面
链出更改
特殊页面
查看源代码
跳转到:
导航
,
搜索
根据下列原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
{{Api_desc_business_en| uri=datapush/status| desc=Connect this API to fetch Weibo statuses and comments. It's a long-lived connection.| httpMethod=GET| needAuth=False| rateLimit=None| params={{api_args|subid|true|int|Subscription ID (See the [[specification ]] for more information).}} {{api_args|since_id|false|long|The last data ID before disconnected ( You don't need to pass this parameter when you first send the request).}} | result= <pre> { "match_info": { "subid": 10826, "keyword_flag": "status", // the keyword type "keyword": "[2017, 微博, 评论]" //the keywords that have been matched }, "id": 1703290048692333, //data ID "text": { "type": "status", "event": "add", "status": { "isLongText": false, "in_reply_to_status_id": "", "created_at": "Wed Mar 29 15:59:21 +0800 2017", "mid": "4090666516291596", "source": "<a href=\"http://app.weibo.com/t/feed/6vtZb0\" rel=\"nofollow\">微博 weibo.com</a>", "objectType": "", "is_show_bulletin": 2, "in_reply_to_screen_name": "", "similarity": "0", "in_reply_to_user_id": "", "id": 4090666516291596, "text": "2017年我是微博不是评论 ", "state": 0, "reposts_count": 0, "favorited": false, "is_weibo_video": false, "visible": { "list_id": 0, "type": 0 }, "ad_tags": { "adv": [ "0" ] }, "truncated": false, "pic_urls": [], "pageMarkLevel": 0, "api_state": 3, "biz_feature": 0, "comments_count": 0, "source_id": 780, "user": { "friends_count": 5, "gender": "m", "allow_all_act_msg": false, "city": "8", "favourites_count": 0, "urank": 4, "description": "", "created_at": "Thu Jan 21 23:06:04 +0800 2016", "avatar_hd": "http://tva2.sinaimg.cn/crop.0.0.1002.1002.1024/006mX07Rjw8f42dg43zuej30ru0run05.jpg", "province": "11", "screen_name": "西二旗test", "id": 5835938223, "geo_enabled": true, "verified": false, "profile_image_url": "http://tva2.sinaimg.cn/crop.0.0.1002.1002.50/006mX07Rjw8f42dg43zuej30ru0run05.jpg", "verified_type": -1, "url": "", "avatar_large": "http://tva2.sinaimg.cn/crop.0.0.1002.1002.180/006mX07Rjw8f42dg43zuej30ru0run05.jpg", "pagefriends_count": 0, "statuses_count": 55, "domain": "", "followers_count": 0, "following": false, "name": "西二旗test", "location": "", "insecurity": { "sexual_content": false } } } } } }</pre>| resultDes=None| useAge=*Use the url: https://c.api.weibo.com/commercial/push to call the API.The url: https://c.api.weibo.com/2/commercial/push.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. *Data id is the first field returned by this endpoint, and is different from the Weibo id in status field. *Speficication for prarameter since_id: *When since_is has not been passed, system would push the recent 100 pieces of data; *In order to avoid receiving recent 100 pieces of data repetitively or missing data, we strongly support passing this parameter every time; *If since_id is passed, system would push the data that is published after since_id; *The data from recent 48 hours can be fetched by passing since_id. If the publishing time of since_id ahead of 48 hours or the since_id is illegal, system would return data as if the since_id is not passed; *<font style="color:red">In order to avoid long-lived HTTP connection being abnormally disconnected, we suggest that:</font> *<font style="color:red">The long-lived HTTP connection can be as long as 5 minutes. After 5 minutes connection, the connection would be disconnected automatically, developers need to update since_id to send a new request;</font> *<font style="color:red">If there is no data produced after 5 seconds, the long-lived HTTP connection would be disconnected automatically;</font> *There are two types of keywords: simple keywords and logical keywords (The keyword containing logical 'AND' and 'NOT'); *The system would give priority to simple keywords, all the matched simple keywords would be returned. If no simple keywords have been matched and there is logical keywords matched, then all the logical keywords would be returned. | otherInfo=None }}{{#a:showgrade}}
该页面使用的模板:
模板:Api args
(
查看源代码
)
模板:Api desc business en
(
查看源代码
)
模板:Languages
(
查看源代码
)
模板:Languages/Lang
(
查看源代码
)
模板:Languages/Title
(
查看源代码
)
模板:Nmbox
(
查看源代码
)
返回到
C/2/commercial/push/en
。
反馈
分享
顶部