Youtube API v3始终返回错误403(accessNotConfigured)

Bla*_*ama 4 youtube android youtube-api android-youtube-api

我已经阅读了很多修复此错误的答案,比如使用浏览器密钥而不是android密钥,但它们都不起作用.

我打开了YouTube Data API v3我的开发者控制台,我已经为Android生成了一个API Key.

这是示例网址:

https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PLAYLISTID&fields=items&key=ANDROID_API_KEY

它返回此错误:

{
error: {
errors: [
{
domain: "usageLimits",
reason: "accessNotConfigured",
message: "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
code: 403,
message: "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}
Run Code Online (Sandbox Code Playgroud)

我已经激活了API,但它一直告诉我要激活它.我该怎么办?

在我的开发人员控制台的项目列表视图中,该项目已有10个请求和10个错误.

该错误说"请使用Google Developers Console为您的项目激活API.",这是否意味着我需要在Google API控制台中启用API后,在开发者控制台中发布/执行某些设置

谢谢你的帮助.

Bla*_*ama 5

我相信Google系统中存在一个错误.

我需要使用浏览器应用程序密钥而不是android密钥.

这还不够,我需要打开旧控制台,是的,只是打开:

https://code.google.com/apis/console/b/0/?noredirect

滑稽的部分是,我没有做任何事情,只需打开旧控制台......甚至生成的密钥是相同的,所以基本上不存在应问题.非常有趣的浪费我的时间,希望这会帮助你.