我正在尝试使用 Youtube API 从特定 channel 中提取所有视频。我在 Google Developers Console 中设置了项目并获得了 API 浏览器 key 。我启用了 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."
}
最佳答案
您是否在 API 访问面板的“编辑允许的 iOS 应用程序...”中添加了任何包 ID?如果这样做,请将它们全部删除。 iOS 应用:现在应该说“允许任何应用”。这为我解决了这个问题。
关于ios - 带有 AFNetworking 的 Youtube API 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29415393/