眼睛干涩吃什么中成药| 白羊座是什么星座| 待字闺中什么意思| 血压低头疼是什么原因| 心脾两虚吃什么中成药| 肌酐高吃什么水果好| 孕初期需要注意些什么| 高考报名号是什么| 息肉样增生是什么意思| 世态炎凉什么意思| 复方对乙酰氨基酚片是什么药| 心跳和心率有什么区别| 龙头龟身是什么神兽| 黑蚂蚁泡酒有什么功效| 神采奕奕是什么意思| 优点是什么意思| 神经病和精神病有什么区别| 努嘴是什么意思| timing什么意思| 孩子咳嗽吃什么饭菜好| 防晒霜和隔离霜有什么区别| 霉菌阴道炎是什么引起的| 盐的主要成分是什么| 心脏支架和搭桥有什么区别| 膀胱ca是什么意思| bbq是什么| 婊是什么意思| 清肺热用什么泡水喝比较好| 7月12日是什么日子| 为什么榴莲那么贵| 喝什么去湿气最好最快| 平台期是什么意思| 20至30元什么烟最好抽| 2000年属什么| 邮政编码有什么用| 为什么白带多| 六月十四号是什么星座| 床上用品四件套都有什么| 七月一号什么星座| 头孢是治什么的| 福尔马林是什么| 抗角蛋白抗体阳性是什么意思| 什么海没有鱼| 什么样的人容易中风| 胆红素三个指标都高是什么原因| 艾滋什么症状| 教师编制是什么意思| 喉咙上火吃什么药| 后羿射日是什么意思| 什么的智慧| 叫什么名字好听| 抗hbc阳性是什么意思| 西瓜有什么品种| 98年是什么年| ncu病房是什么意思| 什么叫更年期| 解压密码是什么| 土豆是什么科| 体重下降是什么原因| 反应蛋白高是什么意思| 处理是什么意思| 将军是什么级别| 或缺是什么意思| 头疼 挂什么科| 男人阴虚吃什么药最好| 被动是什么意思| 猫咪掉胡子是什么原因| 厚颜无耻是什么意思| 姚晨为什么不红了| cp是什么意思| 孕妇喝什么牛奶| 为什么我的眼中常含泪水| 荷花和莲花有什么区别| 三庭五眼是什么意思| 梦见死人了是什么意思| cbp是什么意思| 梦见活人死了是什么意思| 葡萄球菌感染是什么原因引起的| 布洛芬什么时候吃| 指鼻试验阳性代表什么| 发量少适合什么发型| 牙龈上火是什么原因引起的| 脾虚湿重吃什么中成药| 吉页读什么| 尿多尿频是什么原因| 述说是什么意思| 睡觉腿抽筋是什么原因| 百合有什么功效和作用| 为什么总是被蚊子咬| 国保大队是干什么的| 做梦梦见狗咬我什么意思啊| 不忘初心方得始终是什么意思| 大爱是什么意思| 脚上有水泡是什么原因| 转氨酶高是怎么回事有什么危害| 艾叶煮水喝有什么功效| 神采什么| 养肝吃什么| 脑神经检查做什么检查| 实至名归什么意思| 率真是什么意思| 大同有什么好玩的地方| 长焦是什么意思| 耳鸣用什么药| 外痔长什么样| 提高免疫力吃什么食物| 手冲是什么| 抖是什么生肖| 女性盆腔炎吃什么药| oz是什么意思| 淋菌性尿道炎吃什么药| 什么木做菜板最好| 捡肥皂是什么意思| 拔智齿挂口腔什么科| 肝脏低回声意味着什么| 丰都为什么叫鬼城| 腿肿吃什么药消肿最快最有效| 什么叫真菌| 肝火旺盛是什么原因引起的| 鳕鱼不能和什么一起吃| 肠道感染吃什么消炎药| 紫苏煮水喝有什么功效| 结婚九年是什么婚| 不完全骨折是什么意思| 大蒜不能和什么一起吃| 现在创业做什么好| 仓鼠吃什么食物最好| 六月九号什么星座| 大便黑色的是什么原因| 红细胞低吃什么补得快| 久站腿肿是什么原因引起的| 突然耳朵疼是什么原因| 尿肌酐低说明什么| 妊娠囊是什么意思| 许多的近义词是什么| 什么的彩虹| 什么的脊背| 国代是什么意思| 自刎是什么意思| 腹部胀痛什么原因| 左脚麻是什么原因| 鲟鱼吃什么| 一夜白头是什么原因| 抑郁挂什么科| 梦见自己掉牙齿是什么征兆| 犬瘟吃什么药管用| 吃维生素b2有什么好处和副作用| 北漂是什么意思| 痔疮吃什么水果好得快| 藿香正气水什么味| 动物的尾巴有什么作用| 狂犬疫苗挂什么科| b超属于什么科室| 学习机什么牌子好| 月经量少吃什么调理快| 血压低吃什么中成药| 为什么突然头晕| 想吃甜食是什么原因| 颜色什么| 水代表什么| 尿液发黄什么原因| 石光荣是什么军衔| 射频消融术是什么手术| 12岁是什么礼| 榨菜是什么菜| 龙涎香是什么东西| 今天属什么生肖日历| 黄豆酱做什么菜好吃| 杏仁有什么作用和功效| 赵云的武器叫什么| 乳腺一类是什么意思| 支付宝余额和余额宝有什么区别| 杨树林是什么牌子| 呼呼是什么意思| 猪头肉是什么意思| 东道主是什么意思| 炁读什么| 机体是什么意思| 赟怎么读 什么意思| 入定是什么意思| 肚脐下面疼是什么原因| 为什么会得扁平疣| nt是什么货币| 为什么身上会起小红点| 桑榆未晚是什么意思| 乙肝表面抗原阳性是什么意思| 透析是什么病| 8月26是什么星座| 后背发冷发凉属于什么症状| qw医学上是什么意思| 九五年属什么| 无花果什么味道| 魂牵梦萦是什么意思| 卖淫是什么意思| zoe是什么意思| 什么蛋营养价值最高| 眼皮肿什么原因引起的| 伤骨头了吃什么好得快| 什么是妈妈臀| 血糖高喝什么豆浆好| 卵圆孔未闭是什么病| 医生为什么喜欢开地塞米松| 什么是感光食物| rt什么意思| 阴历是什么| 宗室是什么意思| 三查八对的内容是什么| 檀木手串有什么好处| 摄人心魄是什么意思| 腹泻恶心想吐是什么原因| 1951年属什么生肖| 心大是什么意思| 屈原是什么诗人| 血小板偏高有什么危害| 宫缩是什么原因引起的| 什么药治脂肪肝| 一日清闲一日仙是什么生肖| 植物神经紊乱吃什么药| 十月二十三号是什么星座| 什么米减肥效果好| 浮萍是什么| 强直性脊柱炎挂什么科| 三轮体空是什么意思| 什么水越洗越脏| style什么意思| 撇嘴表情什么意思| 眼睛酸疼是什么原因| 西腾手表属于什么档次| 哈气是什么意思| 洁面慕斯和洗面奶有什么区别| 孩子鼻子出血什么原因造成的| 黄体破裂是什么原因造成的| 现充是什么| 心什么胆什么| 血小板计数是什么意思| 女人味是什么| 生化了是什么意思| 来例假能吃什么水果| 2.3是什么星座| eric是什么意思| 吃什么容易胖起来| 出虚恭是什么意思| 肚脐眼右边是什么器官| 便秘吃什么可以调理| 臆想症是什么意思| 冰点是什么意思| 乙肝表面抗原250是什么意思| 射手座是什么星象| 子宫附件是什么意思| 肝肾功能检查挂什么科| who医学上是什么意思| 空气刘海适合什么脸型| 易孕期是什么时候| 脚上真菌感染用什么药| 肝的主要功能是什么| 脸上长斑是因为什么原因引起的| 蛋白过敏是什么症状| 做飞机需要注意什么| 牡丹象征着什么意义| 身上长白点是什么原因| 每天一杯蜂蜜水有什么好处| 乞丐是什么生肖| 拔罐后要注意什么| 黄芪和什么搭配最好| 百度
跳转到: 导航, 搜索

目录

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
脚板痛是什么原因 腺样体肥大挂什么科 创伤性关节炎有什么症状 血管痉挛是什么原因引起的 水彩笔用什么能洗掉
宫颈病变是什么 支付宝余额和余额宝有什么区别 军师是什么意思 apm是什么品牌 山及念什么
1975年属兔的是什么命 左肾轻度积水是什么意思 什么是碱中毒 省政协主席是什么级别 尿发黄是什么原因
流口水什么原因 心灵鸡汤是什么意思 目鱼和墨鱼有什么区别 领空是什么意思 固执的人是什么性格
常见的贫血一般是缺什么hcv9jop2ns3r.cn 71年属猪是什么命hcv8jop8ns1r.cn 维生素k是什么hcv9jop2ns9r.cn 木属于五行属什么hcv8jop4ns1r.cn 凌晨属于什么时辰0297y7.com
谨言慎行下一句是什么hcv7jop4ns7r.cn 烤鱼用什么鱼hcv7jop6ns0r.cn 结局he是什么意思hcv9jop5ns2r.cn 为什么鼻毛会变白hcv8jop0ns0r.cn 老母鸡炖什么好吃又有营养价值xinjiangjialails.com
五更是什么生肖hcv9jop1ns0r.cn 室性期前收缩是什么病youbangsi.com 沙僧的武器叫什么hcv8jop3ns2r.cn 桥本甲状腺炎有什么症状表现hcv9jop0ns2r.cn 什么是黄体hcv7jop9ns7r.cn
顽疾是什么意思hcv9jop2ns9r.cn 鼻涕由清变黄说明什么hcv9jop6ns7r.cn 健康证需要什么hcv8jop3ns3r.cn 朝九晚五是什么意思hcv9jop4ns1r.cn 问其故的故是什么意思zhongyiyatai.com
百度