阴性阳性什么意思| 肾虚吃什么| 九一八事变是什么意思| 羊水偏少对胎儿有什么影响| 费洛蒙是什么| 欲情故纵什么意思| 脑震荡什么症状| 查血糖挂什么科| 一级甲等医院是什么意思| 肛门瘙痒看什么科| 什么地散步| 吃什么能治疗早射| 爸爸的爸爸叫什么儿歌| 夜尿频多是什么原因| 六害是什么意思| 胎儿腿短是什么原因| 西海龙王叫什么| 身份证是什么字体| 成年人改名字需要什么手续| 湿热吃什么药| 敬谢不敏什么意思| 身体年龄是什么意思| 提携是什么意思| 梦见小羊羔是什么意思| 舌头两侧溃疡吃什么药| 伶人是什么意思| 肉便器是什么东西| 梦见自己生病了是什么意思| 点到为止是什么意思| 七月上旬是什么时候| 鼻子毛白了是什么原因| 鸡是什么动物| 最是什么意思| 为什么子宫会隐隐作痛| 食管反流吃什么药| 雪对什么| 加盟资质需要什么条件| 工作性质是什么意思| 防晒衣什么材质最防晒| 农历十月初八是什么星座| 雷尼替丁主要治什么胃病| 乂是什么意思| kerry英文名什么意思| 什么牌子的助听器好| 腿抽筋用什么药| 化疗恶心吃什么可以缓解| 溃疡性结肠炎吃什么药| 痉挛是什么症状| 类似蜈蚣的虫子叫什么| 血氨是什么检查项目| 二甲双胍什么时候吃最好| 多囊性改变是什么意思| 两个土念什么| 冬瓜什么时候成熟| 为什么一低头就晕| 山加乘念什么| 怀孕第一个月有什么特征| 梧桐树长什么样子| 跟腱炎吃什么药效果好| 咳黄痰是什么原因| tbs是什么意思| 肺结节吃什么食物散结节最快| 蓝加红是什么颜色| 老是说梦话是什么原因| 什么叫蜘蛛痣| 经常感冒吃什么提高免疫力| 什么样的人不容易怀孕| 什么牌子| 追求是什么意思| 什么是多动症| 山东特产是什么| cook什么意思| 拖拖拉拉什么意思| 大肠在人体什么位置图| 鼻翼长痘是什么原因| 阴道镜是检查什么的| 血脂高能吃什么水果| 一个目一个于念什么| 胸口堵得慌是什么原因| 产品批号什么意思| 鸡蛋壳属于什么垃圾| 肝不好吃什么药最好| 怀孕六个月出血是什么原因| 孕妇吃什么对胎儿好| 退职是什么意思| 胸片是检查什么的| 成佛是什么意思| 浦去掉三点水念什么| 低置胎盘有什么危险| 为什么医生不建议献血小板| 10月9日什么星座| 袁崇焕为什么杀毛文龙| 心脑血管疾病吃什么药| 室内用什么隔墙最便宜| 雅丹是什么意思| 补位是什么意思| 孙悟空原名叫什么| 肝炎吃什么药| 肝内高回声什么意思| 医院脱毛挂什么科| 抗凝血是什么意思| 氯偏低是什么原因| 肾亏和肾虚有什么区别| 途径是什么意思| 胃有灼热感是什么原因| 宝宝为什么老是吐奶| 安之若素什么意思| 上火牙疼吃什么药| 突破性出血是什么意思| 半岛铁盒是什么| 白居易有什么之称| 全托是什么意思| h表示什么| 安宫牛黄丸什么时候吃最好| 康熙叫什么名字| 安全三原则是指什么| 经常吃紧急避孕药有什么危害| 狗不能吃什么水果| 鲤鱼爱吃什么食物| 过敏性鼻炎吃什么药好的快| 嘴甜是什么原因| 血糖高的人吃什么水果好| 什么的月光| 儿童上火了吃什么降火最快| ads是什么| 先父遗传是什么意思| 心慌吃什么药| 维吾尔族是什么人种| 女人梦见虫子什么预兆| tory burch什么牌子| 重力是什么| 头疼一般是什么原因引起的| 丁克族是什么意思| 姓氏是什么意思| 余年是什么意思| 谷草谷丙高是什么原因| 肠梗阻是什么原因引起的| 男士吃什么壮阳最厉害| 在圣是什么生肖| 1月27号是什么星座| 石足念什么| 17088a是什么尺码男装| 降钙素原偏高说明什么| 慢性宫颈炎是什么原因引起的| 石斛配什么泡水喝好| 刚产下的蚕卵是什么颜色| 高血糖适合吃什么主食| 劳改是什么意思| 2月22是什么星座| 什么是生物钟| 取向是什么意思| 妖股是什么意思| 间接胆红素高是什么意思| 口水粘稠是什么原因| 脑供血不足头晕吃什么药| 吃粽子是什么节日| 户口迁移需要什么手续| 三维重建是什么意思| au990是什么金| 一代表什么意思| 牙龈一直出血是什么原因| 格色是什么意思| zfc是什么牌子| 炖排骨放什么调料| 什么是团队| 浙大校长什么级别| 肾虚是什么原因| 脚裂口子是什么原因| 垂的第三笔是什么| 喉咙有痰咳嗽是什么原因| 孩子吃什么能长高| 为什么减肥不建议喝粥| 处暑吃什么传统食物| 圣诞节送什么好| 腰部疼痛挂什么科| 胸围85是什么罩杯| 玉竹长什么样子| 顶胯是什么意思| 坤位是什么方向| 可逆是什么意思| 梦到和死人说话是什么意思| 龟头炎用什么药好| 小麦淀粉可以做什么| ut是什么| 左边小腹痛什么原因女| 收放自如是什么意思| 黄瓜生吃有什么好处| 弱智的人有什么表现| nt是什么货币| 复合维生素b什么时候吃最好| 上眼皮浮肿是什么原因| 什么药可以止血| 麻鸡是什么鸡| 念珠菌吃什么药最好| 什么鱼适合做酸菜鱼| 大男子主义什么意思| 以色列是什么人种| 鲜黄花菜含有什么毒素| 总胆红素偏高有什么危害| zoe什么意思| 天秤座什么象星座| 折耳猫什么颜色最贵| 胎芽是什么意思| 淋巴细胞百分比偏高是什么原因| 腔隙性脑梗吃什么药| 什么是植物蛋白| 正能量是什么意思| 咳白色泡沫痰是什么病| 吗啡是什么药| 卵泡破裂是什么意思| 是什么有什么| 东北易帜是什么意思| 焦虑吃什么药好| 为什么会长口腔溃疡的原因| 健康证需要什么材料| 筷子什么材质最好| 子宫内膜增厚是什么原因引起的| rhd血型阳性是什么意思| 丙氨酸氨基转移酶是查什么的| 什么时辰出生的人命好| 丝绦是什么意思| 血癌是什么原因造成的| 服软是什么意思| 林可霉素主治什么病| 住院医师是什么职称| 胆结石吃什么可以化掉结石| 经常叹气是什么原因| 心不在焉什么意思| 狗狗睡姿代表什么图解| 口苦吃什么药| 头皮毛囊炎用什么洗发水| 骨密度减少是什么意思| 为什么猫怕水| 尿酸高是什么意思| 转氨酶高对身体有什么影响| 画眉鸟吃什么| st是什么意思| 糖尿病主食吃什么好| 糜烂性脚气用什么药| 当兵什么时候入伍| 白玫瑰代表什么| 巴氏征阳性是什么意思| 六合什么意思| 巡视组组长什么级别| 胃溃疡什么症状| 三下乡是什么| 尿酸升高是什么原因| zro是什么牌子| 寻麻疹涂什么药膏| 和谐是什么| 幽门螺旋杆菌什么症状| 纳豆激酶有什么作用| 吃什么大补| 蹼是什么意思| 泄气的意思是什么| 二龙戏珠是什么意思| 傍家儿是什么意思| 海棠花什么季节开花| 什么是中耳炎| 糖尿病可以吃什么菜| 什么是带状疱疹| 1月3日什么星座| jackie是什么意思| 宝宝低烧吃什么药| 百度
跳转到: 导航, 搜索

目录

Subscription Service User's Guide

Overview

百度 点亮人类命运共同体的思想火炬,推动构建新型国际关系,我们有信心也有能力让这个星球更加和平、更加美丽、更加繁荣。

The subscription service of Weibo Platform makes the applications get the datas more efficiently. According to the subscription filters like keywords, users, and domains applications specified, the applications will be delivered the new datas that match the filters in real-time by the Weibo Platform, without needing to poll the APIs as before.


Advantages:

● The data is for the real-time.

● Save the network resources.

● Provide the more full data.

● Get the data more efficiently.


Filters

● Push according to data types:

Either statuses or comments can be subscribed. A subscription can’t subscribe both of them. Default are statuses.


● Push according to users:

The max number is up to 10000 userids for each subscription. When subscribe for statuses, statuses created by the users specified will be delivered. When subscribe for comments, the statuses which are created by the users specified, the comments to the statuses will be delivered.


● Push according to keywords:

The max number is up to 20000 keywords for each subscription. When subscribe for statuses, statuses which contain one of the keywords specified will be delivered. When subscribe for comments, comments which contain one of the keywords specified will be delivered or the statuses which are commented contain one of the keywords specified, the comments will be delivered.


● Push according to domains:

The max number is up to 20 domains for each subscription. When subscribe for statuses, statuses which contain the short links that one of the short links which original link contains one of the domains specified will be delivered. When subscribe for comments, the statuses which are commented contain the short links that one of the short links which original link contains one of the domains specified, the comments will be delivered.


● Push according to applications:

The application can only be delivered the statuses or comments which were created by the application itself. Or be delivered the datas created by all the applications on Weibo Platform.


● Push according to media types:

Only when the statuses are subscribed is the filter valid. There are five media types: ‘original’, ‘repost’, ‘video, ‘music’, ‘picture’. The statuses which fit the media types specified will be delivered.


● Push according to a percentage specified:

The datas of a percentage of the full datas that fit all the filters above will be delivered. Default is 1 percent.


● Push according to a time range specified:

Applications can specify the start time and the end time of the pushing. Pushing server will be ready when arrives at the start time. And the pushing will be terminated when arrives at the end time. If not specified, the start time is equal the time the subscription was created. And the pushing has no end. When the pushing server is ready, applications can connect the pushing APIs to get the datas.


Steps

Using the subscription service, there are several steps as follows:

subscription_en.png


① Creates a subscription:

Developers fill out the subscription service application form, providing filters and other information. Weibo Platform will create the subscription according to the information provided in the form. Multiple subscriptions can be created for each application.


② Set subscribed keywords and users:

If ‘no’ is selected in the fields of ‘Users’ and ‘Keywords’ in the subscription service application form,applications need ignore this step. If ‘yes’ is selected, the keyword and user subscription list must not be empty. Call the API to subscribe keywords and users: subscribe/update_subscribe


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. If just parameter ‘subid’ is passed, the subscription information included the keywords and users list will be returned.


The length of each keyword can’t exceed 35 Chinese characters or 105 English characters. The number of keywords parameter ‘add_keywords’ specified can’t exceed 50 per request. And the number of users parameter ‘add_uids’ specified can’t exceed 50 per request. The total number of keywords or users subscribed can’t exceed 20000 for each subscription.The keywords and users can’t be subscribed repeatedly. Weibo Platform may protect some keywords and users when needed. Protected keywords and users can’t be subscribed. If a keyword is protected, the keywords that contain the protected keyword can’t be subscribed. The keywords and the datas filtered are not case-sensitive and don’t distinguish between Simplified and Traditional Chinese.


③ Pushing server is ready:

If developers did not provide the start time of the pushing, the start time is equal the time the subscription was created. Pushing server will be ready when arrives at the start time.


④ Application connects and pushing starts:

Only when the pushing server is ready can applications connect the pushing APIs, then pushing starts. Applications will receive the error information if the pushing server is not ready.


To subscribe statuses or comments, connect to the pushing API :commercial/push

See java example for connecting the APIs.


⑤ Application receives data:

Statuses or comments will be delivered to the application after connecting the pushing APIs successfully. The statuses or comments are JSON UTF-8 encoded datas. Every whole message is separated by \r\n and is less than 4096 bytes. Therefore, to make sure you get the whole message, break out each message on \r\n boundaries.


See the responses for details.


⑥ Pushing ends:

If the end time is not specified, the pushing has no end. The pushing will be terminated when arrives at the end time. The subscription can’t be restarted.

Specifications

Applications keep a persistent HTTP request to pushing APIs:‘/commercial/push’ to get data. Parameter subid must be passed to indicate which subscription data should be delivered. Error codes will be returned when request in a wrong way.


When the application uses the subscription service illegally, the subscription of the application will be suspended, that is the datas will not be delivered. The subscription can be restarted when the problems to be resolved. Then applications need to re-request the pushing APIs with the persistent HTTP connection.


In addition, the IP address to request the pushing APIs must be one of the IP list provided when created the subscription. Otherwise, the error response ‘Ip is limited’ will be returned.


More information can be found in commercial/push.

Statuses

The service statuses will be displayed in the ‘Developer Management Center’ as follows:

subscription_start.png

There are five statuses: in preparation, ready, start, suspension, termination.


● in preparation:

After the subscription is created, the pushing server will be ‘in preparation’ when not arrives at the start time of the pushing specified by the application. If the start time is not specified, there will not have the ‘in preparation’ status. The pushing server will enter the status of ‘ready’ immediately after the subscription is created.


● ready:

After the subscription is created, only when the start time of the pushing specified by the application has already arrived at and the application has not connected the pushing APIs, will the pushing server be the status of ‘ready’. When the start time of pushing is not specified and the application has not connected the pushing APIs, the pushing server will be the status of ‘ready’ too.


● start:

When the pushing server is at the status of ‘ready’ and the application has connected the pushing APIs, the pushing server will enter the status of ‘start’.


● suspension:

When the application uses the subscription service illegally, the subscription of the application will be suspended by Weibo Platform. Then the pushing server will enter the status of ‘suspension’.


● termination:

The pushing will be terminated when arrives at the end time of pushing specified by the application. If not specified, the pushing has no end. When the pushing terminates, the pushing server will enter the status of ‘termination’, that is the subscription is expired and can’t be restarted again.


Language: 中文  | English


文档更新时间: 2025-08-04
子宫下垂有什么症状 未来是什么意思 2月20是什么星座 一等功有什么待遇 开端是什么意思
camel什么意思 肠上皮化生是什么意思 什么的芦花 NF什么意思 什么是熊猫血
首级是什么意思 咳嗽有白痰是什么原因 什么药补肾最好 见利忘义是什么意思 尿囊素是什么
郭靖黄蓉是什么电视剧 d3什么时候吃效果最好 亦金读什么 小便次数多吃什么药 全身无力是什么原因
护理学是学什么的hcv9jop2ns6r.cn 良辰是什么意思hcv8jop4ns0r.cn 桑葚和枸杞泡水喝有什么好处hcv8jop8ns6r.cn 宝宝缺钙吃什么补得快chuanglingweilai.com 吹空调感冒吃什么药hcv8jop8ns5r.cn
身上长红疙瘩很痒是什么原因hcv8jop9ns2r.cn 中风的人吃什么好hcv9jop1ns1r.cn 将军指什么生肖baiqunet.com 农历七月初六是什么星座hcv9jop1ns3r.cn bebe是什么牌子hcv9jop3ns3r.cn
出虚恭是什么意思hcv8jop7ns9r.cn 浪琴表属于什么档次hcv8jop9ns5r.cn 寸脉弱是什么原因hcv9jop1ns9r.cn 胸膜炎是什么病hcv9jop4ns7r.cn 身上出现白块什么原因hcv9jop7ns5r.cn
它是什么用英语怎么说fenrenren.com 卟啉病是什么病hcv9jop2ns5r.cn 乙肝245阳性是什么意思hcv9jop3ns0r.cn 指甲上白色月牙代表什么hcv9jop3ns6r.cn 血精是什么原因hcv9jop2ns0r.cn
百度