如何在推文更新时触发事件

发布于 2024-09-11 02:24:08 字数 82 浏览 1 评论 0原文

我想知道当特定用户更新他的推文时如何触发事件(例如,将特定用户的推文存储在文本文件中或邮寄等)。我们是否需要每隔几秒轮询一次更新,或者还有其他出路吗?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

微暖i 2024-09-18 02:24:09

您可以每隔几秒轮询一次(更像是每分钟一次,否则您将遇到 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文