如何在推文更新时触发事件
我想知道当特定用户更新他的推文时如何触发事件(例如,将特定用户的推文存储在文本文件中或邮寄等)。我们是否需要每隔几秒轮询一次更新,或者还有其他出路吗?
I wanted to know how to trigger an event (say. storing a tweet from a particular user in a text file or mailing it etc.) when a particular user updates his tweets. Do we need to poll for the updates every few seconds or is there any other way out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以每隔几秒轮询一次(更像是每分钟一次,否则您将遇到 API 速率限制),或者您可以查看使用 流媒体 API
You can poll every few seconds (more like every minute, otherwise you'll run into the API rate limit), or you could look at using the Streaming API