开发者

Change Twitter stream filter keywords without re-opening stream

开发者 https://www.devze.com 2023-01-08 07:05 出处:网络
Is it possible to change the filter keywords on a Twitter stream while it\'s open? I\'m looking to follow the second point of the http://dev.twitter.com/pages/streaming_a开发者_运维问答pi pre-launch

Is it possible to change the filter keywords on a Twitter stream while it's open?

I'm looking to follow the second point of the http://dev.twitter.com/pages/streaming_a开发者_运维问答pi pre-launch checklist, "Creating the minimal number of connections", and avoid closing and re-opening the stream each time the keywords I wish to follow change.


you can't change the filter predicate without reconnecting, but the streaming-api concepts page has instructions how change the predicates and making the user experience as smooth as possible


Official documentation says you cannot update the filter predicates; http://dev.twitter.com/pages/streaming_api_concepts#updating-filter-predicates

0

精彩评论

暂无评论...
验证码 换一张
取 消