推特速率限制

发布于 2024-09-14 13:16:56 字数 943 浏览 3 评论 0原文

我正在尝试使用此:

https://twitter.com/account/rate_limit_status.xml

检查我是否没有超过 Twitter 上的速率限制。问题是我正在拨打电话,但剩余点击量参数似乎并没有像我拨打的那样减少:

<?xml version="1.0" encoding="UTF-8" ?> 
<hash>
<reset-time-in-seconds type="integer">1281858712</reset-time-in-seconds> 
<reset-time type="datetime">2010-08-15T07:51:52+00:00</reset-time> 
<remaining-hits type="integer">146</remaining-hits> 
<hourly-limit type="integer">150</hourly-limit> 
</hash>

我只是拨打不需要身份验证的电话,并且我已经在文档中阅读了这一点:

需要身份验证(关于身份验证): true,确定用户的速率限制状态 false,确定请求 IP 的速率限制状态

(https://dev.twitter .com/docs/rate-limiting

那么我需要在通话中的某个地方设置 false 吗?我不是经过身份验证的用户,所以我唯一的限制是 IP 的当前限制。

I'm trying to use this:

https://twitter.com/account/rate_limit_status.xml

to check that i'm not going over the rate limiting on twitter. Problem is i'm making calls but the remaining-hits param does not seem to be reducing by as much as i'm calling:

<?xml version="1.0" encoding="UTF-8" ?> 
<hash>
<reset-time-in-seconds type="integer">1281858712</reset-time-in-seconds> 
<reset-time type="datetime">2010-08-15T07:51:52+00:00</reset-time> 
<remaining-hits type="integer">146</remaining-hits> 
<hourly-limit type="integer">150</hourly-limit> 
</hash>

I'm just making calls that don't require authentication and I've read this bit in the documentation:

Requires Authentication (about authentication):
true, to determine a user's rate limit status
false, to determine the requesting IP's rate limit status

(https://dev.twitter.com/docs/rate-limiting)

So do I need to set false somewhere in my call? I'm not an authenticated user so the only limits I have are the current limit on the ip.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

不疑不惑不回忆 2024-09-21 13:16:56

否。如果您不使用身份验证,则自动假定为“false”。

您确定您拨打的电话受到速率限制吗:

REST API 基于用户和 IP
速率限制。经过身份验证的 API 调用
是针对验证的措施
用户的速率限制。未经身份验证
话费从通话中扣除
主机 IP 地址限额。

速率限制应用于方法
通过 HTTP 请求信息
获取命令。一般API方法
使用 HTTP POST 将数据提交到
不过,Twitter 没有速率限制
某些方法受到速率限制
现在。 API中的每个方法
文档解释了它是否是费率
是否有限。

No. If you don't use authentication then "false" is supposed automatically.

Are you sure that you are making calls that are rate limited:

The REST API does user and IP-based
rate limiting. Authenticated API calls
are measure against the authenticating
user's rate limit. Unauthenticated
calls are deducted from the calling
hosts IP address allowance.

Rate limits are applied to methods
that request information with the HTTP
GET command. Generally API methods
that use HTTP POST to submit data to
Twitter are not rate limited, however
some methods are being rate limited
now. Every method in the API
documentation explains if it is rate
limited or not.

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