【问题标题】:How to resolve error of Update Rate Limits in Twitter in android?如何解决 Android 中 Twitter 中更新速率限制的错误?
【发布时间】:2014-02-05 00:51:52
【问题描述】:

我必须将 twitter 集成到我的应用程序中。我已经集成,但我从昨天开始收到更新限制错误。在它工作之前,但现在我收到了速率限制错误。

403:请求被理解,但已被拒绝。随附的错误消息将解释原因。当请求因更新限制而被拒绝时使用此代码 (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following)。

相关讨论可以在互联网上找到:---或---- TwitterException{exceptionCode=[10f5ada3-e574402b], statusCode=403, message=null, code=-1, retryAfter=-1, rateLimitStatus=null, version=3.0.3}

【问题讨论】:

标签: android twitter twitter4j


【解决方案1】:

有一个recent change to the Twitter API。您现在可以使用 HTTPS 调用它。

您应该确保您/您的图书馆使用的 URL 以

开头
https://api.twitter.com/1.1/

(注意http之后的额外s。)

【讨论】:

  • Terence 现在我正在使用 twitter 示例项目,我必须在其中进行更改
  • 你从哪里得到代码?搜索它,直到找到 API 字符串,然后将其更改为 https。
【解决方案2】:

我遇到了同样的错误,升级到最新版本的 twitter4j 3.0.5 解决了我的问题。 在这里获取最新消息http://twitter4j.org/en/index.html#download 我应该提到我运行的版本是 twitter4j 3.0.3。因此,通过转到 3.0.5 或 3.0.6 版本解决了我的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-04-21
    • 1970-01-01
    • 1970-01-01
    • 2011-07-04
    • 1970-01-01
    • 2012-08-10
    • 2014-09-21
    • 2021-09-29
    相关资源
    最近更新 更多