YouTube Api V3:未配置访问 [英] YouTube Api V3: Access not configured
问题描述
我使用的api密钥已被提供给我的人删除,没什么大不了的,我可以生成自己的api密钥.
The api key I used was deleted by the Person who gave it to me, no big deal, I can generate my own one.
我创建了项目,激活了对YouTube api的访问,创建了密钥并尝试在项目中使用它.
I created the Project, activated the Access to the YouTube api, created my key and tryed to use it in my Project.
起初,我收到一条消息,提示密钥可能是错误的或不存在.几分钟后,密钥似乎已注册,但是现在我收到了另一条错误消息:
At first I got the message, that the key would be bad or was non existing. After a few minutes, the key seemed to be registered, but now i get a different error message:
domain: 'usageLimits',
reason: 'accessNotConfigured',
message: 'Access Not Configured. YouTube Data API has not been used in project 'my Project id' before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project='my Project id' then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',
当我打开给定的URL时,我仅获得概述,甚至提到了该API被激活的情况: 状态 Aktiviert
When I open the given URL, i just get the overview, where even is mentioned, that the API is activated: Aktivierungsstatus Aktiviert
我试图删除密钥,然后再次停用API,然后重新激活它并创建一个新密钥.然后,我将我的域添加到了受信任的域中. 尝试了对调用和API的不同限制,甚至删除了所有限制.
I tried to delete my key, deactivate the API again, reactivate it, and create a new key. And I added my Domain to the trusted Domains. Tried different restrictions for the calling and the APIs, and even removed all restrictions.
什么原因可能导致问题?
What could cause the problem?
推荐答案
我或多或少(并没有)解决问题.
I more or less (didn't) solve the Problem.
等待了几天之后,总体而言,重新创建了密钥,重新激活了api等之后,我今天放弃了. 浏览了许多教程和博客文章,并就如何将api用于WordPress YouTube插件做了一步一步的指导.
After waiting for some days Overall, and recreating keys, reactivating the api and much more, i gave up today. Looked through many tutorials and blog Posts and just did a step by step guide on how to use the api for a WordPress YouTube Plugin.
因此,我在同一个Google帐户上创建了一个新项目(几乎相同的名称),激活了api,创建了api密钥,并且在第一次尝试时,它没有任何等待或任何工作就成功了.
So, i created a new Project (almost identical Name) on the same Google account, activated the api, created the api key, and on the first try, without waiting or anything, it worked.
3个步骤: -创建一个新项目 -激活API -创建api密钥
3 Steps: - Create a new Project - Activate the api - Create the api key
我不知道为什么这对我的第一个项目不起作用,因为我做了完全相同的步骤.
I dont know why this does not work on my first Project, as i did the exact identical steps.
这篇关于YouTube Api V3:未配置访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!