Twitter 针对移动设备 3G 上的 Rest API 的速率限制
Twitter 对未经身份验证的 REST API 的每小时请求数限制为 150 个,我在 iPhone 应用程序中显示 2 条最新推文,并且我不想对任何用户进行身份验证,当我通过 3G 获取推文时,就会出现问题“超出速率限制”错误,我有什么选择?
据我所知,Twitter 根据设备的公共 IP 计算此限制,对于移动设备来说,该 IP 可以与许多其他设备共享,从而导致此问题。
如果你查看阿黛尔的新 iPhone 应用程序,它有一个可以提取推文的新闻部分,而我的应用程序显示速率超出,此列表已更新。 我唯一的想法是他们在后端获取这些结果,保存结果或缓存它们并通过他们的服务器提供它们,而不是直接从应用程序查询 Twitter。
Twitter have a 150 requests per hour limit for their unauthenticated REST API, I am displaying 2 of the latest tweets in my iPhone application and I don't want to authenticate any users, the problem arises when I fetch tweets over 3G when I get a "Rate limit exceeded" error, what are my options ?
I understand that Twitter calculates this limit based on the public IP of the device, which for mobiles can be shared with many other devices, causing this problem.
If you check out Adele's new iPhone app, it has a news section that pulls in tweets, while my app showed rate exceeded, this list updated.
The only idea I have is they are fetching these results on the backend, saving the results or caching them and serving them through their server rather then querying Twitter directly from the application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定你有选择。你必须验证它们。
大多数 3G 网络分配动态 IP 地址,这些地址很可能是随机共享的。在我的网络 MTN 上,您无法连续 3 个成功请求而不出现速率限制错误。
我建议你验证它们。
Not sure you have options. You have to authenticate them.
Most 3G networks allocate dynamic IP addresses that are most likely randomly shared. On my network, MTN, you can't get 3 consecutive successful requests without getting rate limit errors.
I suggest you authenticate them.