【发布时间】:2014-08-05 22:58:44
【问题描述】:
我对 twitter api guide 关于速率限制的提及感到有点困惑 https://dev.twitter.com/docs/rate-limiting/1.1
在他们的指南 twitter 中提到,follow 字段将出现在响应标头中,可用于确定允许的 api 调用量,留下并将停留在信息中
X-Rate-Limit-Limit: the rate limit ceiling for that given request
X-Rate-Limit-Remaining: the number of requests left for the 15 minute window
X-Rate-Limit-Reset: the remaining window before the rate limit resets in UTC epoch seconds
现在他们还提供了一个速率限制状态api来查询
https://dev.twitter.com/docs/api/1.1/get/application/rate_limit_status
现在我有点困惑我应该遵循上述哪个值来查看在达到所需限制之前有多少 api 调用可供我使用。
【问题讨论】:
标签: twitter