【问题标题】:Youtube API with AFNetworking failed带有 AFNetworking 的 Youtube API 失败
【发布时间】:2015-06-07 13:15:12
【问题描述】:

我正在尝试使用 Youtube API 从特定频道中提取所有视频。我在 Google Developers Console 中设置了项目并获得了 API 浏览器密钥。我启用了 YouTube Data API v3,为了安全起见,我启用了 YouTube Analytics API。

我不知道我收到了这个错误。谁能帮我。这是我的控制台输出。

"error": {
  "errors": [
 {
  "domain": "usageLimits",
  "reason": "ipRefererBlocked",
  "message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.",
  "extendedHelp": "https://console.developers.google.com"
 }
],
"code": 403,
"message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed."
}

【问题讨论】:

    标签: ios objective-c iphone youtube youtube-api


    【解决方案1】:

    您是否在 API 访问面板的“编辑允许的 iOS 应用程序...”中添加了任何捆绑包 ID?如果你这样做了,请将它们全部删除。 iOS 应用:现在应该说“允许任何应用”。这为我解决了这个问题。

    【讨论】:

      【解决方案2】:

      有人告诉我,只需从编辑允许的 IP 选项中删除所有 Ip 即可解决此问题。这使得它安全性降低,但之后它将接受所有 IP。

      【讨论】:

        猜你喜欢
        • 2016-05-03
        • 2014-04-05
        • 1970-01-01
        • 2013-04-07
        • 2019-08-23
        • 2015-09-05
        • 1970-01-01
        • 2022-11-06
        • 1970-01-01
        相关资源
        最近更新 更多