2015-04-02 38 views
2

我正尝试使用Youtube API从特定频道获取所有视频。我在Google Developers Console中设置了该项目并获得了API浏览器密钥。我启用了YouTube数据API v3,为了安全起见,我启用了YouTube Analytics API。带AFNetworking的Youtube 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." 
} 

回答

0

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

0

我被告知,这是通过从编辑允许的IP选项中简单地删除所有IP来解决的。这使得它不太安全,但它会接受所有的IP之后。

http://i.stack.imgur.com/LSbTL.jpg

相关问题