Youtube api v3显示“Access Not Configured”代码:403

时间:2015-01-24 08:27:37

标签: android api youtube-data-api android-youtube-api

我在开发者控制台中创建了一个Google应用程序,打开了" YouTube Data API v3",生成了服务器API密钥。但是当我传递api密钥时,在API(Webservice)中显示错误就像这样:

{
    "error": {
        "errors": [{
            "domain": "usageLimits",
            "reason": "accessNotConfigured",
            "message": "Access Not Configured. The API is not enabled for your project, or 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 configuration.",
            "extendedHelp": "https://console.developers.google.com"
        }],
        "code": 403,
        "message": "Access Not Configured. The API is not enabled for your project, or 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 configuration."
    }
}

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我有类似的问题,它通过使用允许所有引用的浏览器密钥来解决..