【问题标题】:iOS SLRequest Twitter search credentials access erroriOS SLRequest Twitter 搜索凭据访问错误
【发布时间】:2016-10-13 22:06:24
【问题描述】:

我的应用程序使用 iOS 上的集成 Twitter API 从 Twitter REST API 接收数据。 /1.1/friends/list.json/1.1/users/lookup.json 端点可在所有设备上完美运行,但 /1.1/users/search.json 端点会为一小部分用户提供凭据错误。

这是我从这些设备上的 SLRequest 收到的错误响应:

{
    errors = (
        {
            code = 220;
            message = "Your credentials do not allow access to this resource";
        }
    );
}

HTTP 状态码是 403。

【问题讨论】:

    标签: ios twitter slrequest


    【解决方案1】:

    请检查您的应用是否具有读写访问权限。 还要检查将 api.twitter.com 限制为 SSL/TLS 流量 https://dev.twitter.com/discussions/24239

    您也可以参考此链接进行进一步的故障排除Error Code 220 - "Your credentials do not allow access to this resource" When tryig to get retweets

    【讨论】:

    • 感谢您的回答!权限应该不是问题,因为其他 API 端点正常运行。我的应用程序还使用 SSL/TLS 来访问 Twitter API。我已经查看了其他问题,但它不包含适用于我的应用的解决方案。
    猜你喜欢
    • 2013-06-22
    • 1970-01-01
    • 2014-05-03
    • 1970-01-01
    • 2013-11-30
    • 2019-08-17
    • 2012-10-28
    • 2015-04-23
    • 2013-10-05
    相关资源
    最近更新 更多