0
getメソッドを使用してデータをログすると、このエラーが表示されます。私はyoutube v3 APIを使いました。 APIキーを何度も生成しますが、うまくいきません。Youtube API jQueryエラー
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used in project 29208476753 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube/overview?project=29208476753 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/overview?project=29208476753"
}
],
"code": 403,
"message": "Access Not Configured. YouTube Data API has not been used in project 29208476753 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube/overview?project=29208476753 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
これは私のコードです:すべての
$.get(
"https://www.googleapis.com/youtube/v3/search", {
part: 'snippet, id',
q: q,
type: 'video',
key: 'AIzaSyBnJBfGjTZ5Jw2HjHCDfu3-WgdzNEOBjE'
},
function (data) {
var nextPageToken = data.nextPageToken;
var previousPafeToken = data.previousPafeToken;
console.log(data);
}
);
ありがとうございました。 –