什么时候母亲节| 大便培养是检查什么的| 威五行属什么| 琛字五行属什么| 风湿性关节炎用什么药效果好| 欧洲为什么没有统一| 五音是什么意思| 水印是什么意思| 右耳朵疼是什么原因| 下过海是什么意思| osd是什么意思| 鼻子和嘴巴连接的地方叫什么| 什么补钾| 托帕石是什么宝石| 阴道痒用什么药好| 屁股疼是什么原因引起的| 幼犬可以吃什么| 灵枢是什么意思| 腰椎间盘突出不能吃什么食物| 自私自利是什么意思| wb是什么意思| 腘窝囊肿挂什么科| 洗发水和洗发露有什么区别| 帕金森是什么病| 胃不好吃什么好消化又有营养| 乳腺癌ki67是什么意思| 益母草煮鸡蛋有什么功效| 翡翠属于什么玉| 1月21号什么星座| 吃什么排便最快| 奇货可居是什么意思| 什么的微风填空| 金益什么字| 戒定真香是什么意思| 落汤鸡是什么意思| 决断是什么意思| sc1是什么意思| 感受是什么意思| 尿毒症什么原因引起的| ec50是什么意思| 脐橙什么意思| 什么水果对肝脏好| 肝气不舒吃什么中成药| 什么的陪伴| 同房后需要注意什么| 北京佑安医院擅长什么| 防弹衣为什么能防弹| 冰袋里面装的是什么| 经常胃胀是什么原因| 和硕是什么意思| 李姓男孩起什么名字好| 脚底发红是什么原因| 跳蛋什么感觉| 计抛是什么意思| 画龙点睛是什么生肖| 胆结石挂号挂什么科| 尿素氮高什么原因| 缺二氧化碳是什么症状| 经验是什么意思| 后背发热是什么原因| 单纯疱疹病毒吃什么药| 头发麻是什么病的前兆| 半月板变性是什么意思| 枭念什么| 红色加黄色等于什么颜色| 天下无双是什么生肖| 什么什么发光| 过敏性紫癜是什么原因引起的| 扫码是什么意思| 一什么野花| 感冒引起的咳嗽吃什么药| 什么叫处方药| 颈椎病看什么科| 单身为什么中指戴戒指| 感冒为什么会全身酸痛无力| 胚轴发育成什么| 阿奇霉素主治什么| ncu病房是什么意思| 唱腔是什么意思| 红苋菜不能和什么一起吃| 停胎是什么原因造成的| 韭菜什么人不能吃| 怨妇是什么意思| 听之任之是什么意思| 阑尾炎检查什么项目| 睡觉流眼泪是什么原因| 犀利哥什么意思| 耳目比喻什么| 12度穿什么衣服| 高校自主招生是什么意思| 氯化钾主治什么病| 独在异乡为异客异是什么意思| 米索前列醇片是什么药| 茶鱼是什么鱼| 争先恐后是什么生肖| 尿红色是什么原因| 什么使我快乐| 乙肝大三阳是什么意思| 为什么手会不自觉的抖| 早射吃什么药可以调理| 肺在什么位置图片| 复活节是什么意思| 9月20号是什么星座| 桑葚什么季节成熟| 足交什么感觉| 果冻是什么意思| dmdm乙内酰脲是什么| 清心寡欲下一句是什么| 怀孕一个月会有什么反应| 低血压吃什么补得最快| 臆想症是什么意思| 什么时候买机票便宜| 天上的星星为什么会发光| 得艾滋病的前兆是什么| 人参长什么样子图片| 莫名心慌是什么原因| 受委屈是什么意思| 左脚大拇指麻木是什么原因| 鲤鱼吃什么| 五月十日是什么星座| 一个提手一个京念什么| 什么的马| 包皮红肿用什么药| 宫腔内无回声区是什么意思| 10月10是什么星座| 脸上白了一小块是什么原因| 籍贯一般写什么| 为什么叫中日友好医院| 盆底肌是什么| 麂皮绒是什么材质| 梗塞灶是什么意思| 闻香识女人是什么意思| 为什么静脉曲张| 溪字五行属什么| 河南的特产是什么| 神经损伤吃什么药最好| 维生素b4又叫什么| 胰腺是什么器官| 破处是什么意思| 夏枯草长什么样子| 老是觉得口渴是什么原因引起的| 白细胞低有什么危害| 玳瑁色是什么颜色| 知交是什么意思| 每日家情思睡昏昏什么意思| 结肠炎有什么症状表现| 什么的鸭子| 127是什么意思| 尿喝起来是什么味道| 我看见了什么| 热痱子是什么样子图片| 粉荷花的花语是什么| 皮脂腺囊肿吃什么消炎药| 丧偶式婚姻是什么意思| 老是发烧是什么原因| 60大寿送什么礼物| cpa是什么意思| 黑茶色是什么颜色| conch是什么牌子| 胃粘膜脱落什么症状严重吗| 滴虫性阴道炎用什么药好| 有眼袋是什么原因| 去离子水是什么| 反流性食管炎吃什么中药| 婴儿便秘怎么办什么方法最有效| 分率是什么意思| 属牛的跟什么属相最配| 麻醉评估是什么意思| 坐以待毙是什么意思| 腿上无缘无故出现淤青是什么原因| 帕金森挂什么科| 拔罐后要注意什么| 小暑是什么意思啊| 火山为什么会喷发| 胎盘长什么样子图片| 为什么会气虚| arr是什么| 义字少一点念什么| 喝啤酒头疼是什么原因| 唱反调是什么意思| 上皮细胞一个加号什么意思| pears是什么意思| 吃什么能瘦肚子| 欺世盗名是什么意思| 喝葡萄汁有什么好处| 血小板分布宽度偏高是什么意思| mafia是什么意思| 记吃不记打的下一句是什么| 什么叫培根| 12月16号是什么星座| 减肥期间吃什么最好| 面部脂溢性皮炎用什么药| 蒹葭苍苍是什么意思| 窝沟封闭什么意思| 藏医最擅长治什么病| 囊肿与肿瘤有什么区别| 吻合是什么意思| 光动力治疗什么| smz是什么药| 做书桌用什么板材好| 嘴上有痣代表什么| 益生菌不能和什么一起吃| 缺铁性贫血吃什么水果| 七月六号是什么日子| 糖醋鱼用什么鱼| 儿郎是什么意思| soho是什么意思| 血糖高喝什么牛奶好| 磨牙挂什么科| 什么是大小周| 治骨质疏松打什么针| 砂仁是什么| 叶公好龙是什么故事| 金银花搭配什么泡水喝好| 为什么家里有蟑螂| 2014年属什么生肖| 富字五行属什么| 红薯什么季节成熟| 活血是什么意思| 属鸡与什么属相最配| 辛辣指的是什么| 皮肤过敏用什么药膏| 上海手表什么档次| 大红袍属于什么档次| 止咳吃什么药| 什么是玄学| 肝病初期有什么症状| 招风耳是什么意思| 气管炎吃什么食物好| 腿肿是什么原因| 幼儿急疹是什么原因引起的| 什么粥减肥效果好| 臭男人是什么意思| 脑供血不足有什么危害| 孕妇喝什么汤好| 观音坐莲是什么意思| 空调外机为什么会滴水| 面包用什么面粉| 涩是什么意思| 2000年龙是什么命| hev是什么意思| 女人肾阴虚吃什么药| 100a是什么尺码| 痰多吃什么好化痰| sorona是什么面料| 开放性神经管缺陷是什么意思| 素有是什么意思| 清宫和人流有什么区别| 重阳节是干什么的| 鸡皮肤是什么原因引起的| 扁桃体肿大吃什么药| 拔罐颜色紫黑代表什么| 男士私处瘙痒用什么药| 蛇的天敌是什么动物| 1.22是什么星座| 停车坐爱枫林晚的坐是什么意思| 效果图是什么意思| 驿是什么意思| 鼻子闻不到味道是什么原因| 风热感冒吃什么食物| ep病毒是什么| 肾病吃什么水果好| cosplay是什么意思| lot什么意思| 百度
跳转到: 导航, 搜索

目录

Subscription Service User's Guide

Overview

百度 据台湾媒体报道,艺人欧阳妮妮不久前被曝出和31岁的五金行小开李家安交往。

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


血液生化检查能看出什么病 梅花象征着什么 静脉曲张什么症状 狼狈是什么动物 秋葵不适宜什么人吃
区级以上医院是什么意思 脂肪肝适合吃什么食物 儿童嗓子哑了什么原因 肌酐高是什么原因引起的 嗡阿吽是什么意思
辣椒炒肉用什么肉 氧氟沙星和诺氟沙星有什么区别 老虎拉车的歇后语是什么 7月27号是什么星座 沙和尚是什么动物变的
夜郎自大是什么意思 股骨头坏死是什么原因引起的 tf口红属于什么档次 8月15号是什么日子 白带黄绿是什么原因
迈之灵治什么病hcv9jop1ns2r.cn 妈妈是什么hcv8jop0ns1r.cn 吃韭菜有什么好处和坏处xinmaowt.com 人中起痘痘是什么原因baiqunet.com 6.12是什么星座hcv8jop8ns2r.cn
爆裂性骨折什么意思0735v.com 点状钙化是什么意思hcv8jop9ns2r.cn 银饰发黑是什么原因hcv9jop8ns1r.cn 吃靶向药不能吃什么hcv7jop6ns5r.cn 中耳炎什么症状0297y7.com
冠脉钙化是什么意思hcv9jop5ns0r.cn 胚由什么发育而来hcv8jop6ns6r.cn 嗜睡是什么意思hcv9jop5ns2r.cn 徐长卿是什么药shenchushe.com 什么是筋膜hcv9jop3ns3r.cn
白内障什么原因造成的1949doufunao.com 油价什么时候调整hcv7jop4ns6r.cn 公鸡为什么会啄人hcv7jop6ns2r.cn 孔雀女是什么意思hcv8jop2ns5r.cn 吃什么食物养肝护肝hcv8jop3ns4r.cn
百度