【问题标题】:Youtube api v3 shows "Access Not Configured" code:403Youtube api v3 显示“未配置访问”代码:403
【发布时间】:2015-03-23 07:18:30
【问题描述】:

我在开发者控制台中创建了一个谷歌应用程序,打开了“YouTube Data API v3”,生成了服务器 API 密钥。但是当我在 API(Webservice) 中传递 api 密钥时,它显示如下错误:

{
    "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."
    }
}

我该如何解决这个问题?

【问题讨论】:

  • 请描述您的项目。你用的是android sdk吗?
  • 您必须每行使用 SHA1 证书指纹和包名称(用分号分隔)创建 android 密钥而不是服务器密钥。

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


【解决方案1】:

我有类似的问题,通过使用允许所有推荐人的浏览器密钥解决..

【讨论】:

  • 这不是一个好的解决方案,并且绕过了限制访问的整个要点。
猜你喜欢
  • 2013-12-15
  • 2019-06-22
  • 2013-04-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-02-26
  • 2014-01-22
  • 1970-01-01
相关资源
最近更新 更多