一个月前,我使用Youtube API创建了一个Youtube可视化,效果很好,直到上周该API才停止响应。
试图;
添加了引荐来源网址(https://stackoverflow.com/a/29783456/447988)
创建新密钥
我没有尝试过的一件事就是创建一个新项目,因为我没有这样做的权限。 (https://stackoverflow.com/a/54456853/447988)
查看报告,一切似乎很好https://imgur.com/a/wIwWwrJ
代码很简单;
https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&chart=mostPopular®ionCode=JP&maxResults=50&key=xxx
以下是错误;
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used in project xxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=xxx 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=xxx"
}
],
"code": 403,
"message": "Access Not Configured. YouTube Data API has not been used in project xxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=xxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}