【发布时间】:2015-04-06 00:53:24
【问题描述】:
我一直在关注this tutorial 来创建 Youtube 应用程序。我创建了 Browser-Android API Key 并在我的项目中尝试了它们。但是当我尝试运行它并搜索时,我得到:
Could not search: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "usageLimits",
"message" : "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.",
"reason" : "ipRefererBlocked",
"extendedHelp" : "https://console.developers.google.com"
} ],
"message" : "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed."
}
任何想法..?
【问题讨论】:
-
我做到了,而且我确定它是正确的.. :S
标签: android json youtube youtube-api