YouTube数据API已启用,但返回“未配置访问权限”错误

Pas*_*day 6 youtube-data-api

我基于此示例(https://developers.google.com/youtube/v3/quickstart/js)在内部使用的Web解决方案来检索YouTube视频统计信息现在无法正常工作。不知道确切的时间是什么,但是几个月前它就可以工作了。

我现在尝试运行未经编辑的示例代码(当然,除了调整CLIENT_ID之外),而且我得到的是完全相同的错误:

{
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. YouTube Data API has not been used in project 123 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=123 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
    "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=123" }   ],   "code": 403,   "message": "Access Not Configured. YouTube Data API has not been used in project 123 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=123 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."  
}
Run Code Online (Sandbox Code Playgroud)

当我在开发人员控制台中检查YouTube API时,它会显示启用状态,并且与此API兼容的凭据包括用于验证客户端身份的ID。重试API调用尝试时,我可以看到凭据使用增量的统计信息,这些指标反映了请求的数量,并且还表明错误率是100%。但是,在控制台中那些失败的尝试没有额外的信息来帮助调试问题。

我已经删除并重新创建了API密钥和OAuth密钥,但这并没有改变任何东西。

如果开发人员控制台方面存在有关这些错误的任何其他信息,例如超出了客户报价,我可以看到如何解决此问题。现在我完全被困住了。

小智 5

创建一个新项目

奇怪的是,创建一个新项目只会让 API 正常工作!


daz*_*act 0

尝试使用新的 oAuthCliedID 和 oAuthClientSecret 启动一个新项目