Youtube API v3始终返回错误403(accessNotConfigured) [英] Youtube API v3 always return error 403 (accessNotConfigured)

查看:274
本文介绍了Youtube API v3始终返回错误403(accessNotConfigured)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了很多解决此错误的答案,例如使用浏览器密钥代替android密钥,但是没有一个起作用.

I have read a lot of answers to fix this error, like using browser key instead of android key but none of them work.

我已经在开发人员控制台上打开了YouTube Data API v3,并且已经为Android生成了API密钥.

I have turned on YouTube Data API v3 on my developer console and i already generated an API Key for android.

这是示例网址:

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,但是它一直告诉我要激活它.我该怎么办?

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

And in the projects list view on my developer console, this project already has 10 request and 10 errors.

错误提示请使用Google Developers Console激活您项目的API.",是否意味着我在打开API后需要在开发者控制台中发布/做一些设置在Google API控制台中?

The error said "Please use Google Developers Console to activate the API for your project.", does that mean i need to publish/do some settings one the developer console after i turned on the API in the Google API Console?

感谢您的帮助.

推荐答案

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

I believe there is a bug in Google's system.

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

I need to use the browser apps key instead of android key.

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

And that is not enough, i need to open the old console, yes JUST OPEN :

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

有趣部分是,我不必执行任何操作,只需打开该旧控制台...即使生成的密钥也相同,因此基本上应该没有问题.浪费我的时间太有趣了,希望这对您有所帮助.

The funny part is, i dont have to do anything, just open that old console...even the generated key is the same, so basically there should be not problem. So funny for wasting my time, Hope this help you.

这篇关于Youtube API v3始终返回错误403(accessNotConfigured)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆