android - Youtube API v3 总是返回错误 403 (accessNotConfigured)

标签 android youtube youtube-api android-youtube-api

我已经阅读了很多解决此错误的答案,例如使用 browser key 而不是 android key 但它们都不起作用。

我已经在我的开发者控制台上打开了 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."
}
}

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

在我的开发者控制台的项目 ListView 中,这个项目已经有 10 个请求和 10 个错误。

错误显示“请使用 Google Developers Console 为您的项目激活 API。”,这是否意味着我需要在打开 API 后在开发者控制台上发布/执行一些设置在 Google API 控制台中?

感谢您的帮助。

最佳答案

我认为 Google 的系统中存在错误。

我需要使用浏览器应用 key 而不是安卓 key 。

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

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

有趣的部分是,我不需要做任何事情,只需打开那个旧控制台...即使生成的 key 是相同的,所以基本上应该没有问题。浪费我的时间真是太有趣了,希望这对你有帮助。

关于android - Youtube API v3 总是返回错误 403 (accessNotConfigured),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23740251/

相关文章:

android - 首次显示前获取 View 宽度/高度或字体宽度/高度/其他尺寸

android - 我如何配置我的 android 模拟器以开始在 intellij 中运行?

php - 不允许人们发布私有(private) youtube 视频链接

android - youTubePlayerSupportFragment.initialize上的Nullpointer异常

java - RenderScript 模糊覆盖原始位图

php - 将 YouTube 播放列表中的所有视频 ID 获取到 PHP 数组中

youtube - Fancybox Youtube channel 嵌入

python - Google API 授权(服务帐户)错误 : HttpAccessTokenRefreshError: unauthorized_client: Unauthorized client or scope in request

php - 我如何在 CodeIgniter Controller 中调用这个函数?

android - 找不到样式属性 textColorPrimary