【发布时间】:2015-03-23 07:18:30
【问题描述】:
我在开发者控制台中创建了一个谷歌应用程序,打开了“YouTube Data API v3”,生成了服务器 API 密钥。但是当我在 API(Webservice) 中传递 api 密钥时,它显示如下错误:
{
"error": {
"errors": [{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. The API is not enabled for your project, or 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 configuration.",
"extendedHelp": "https://console.developers.google.com"
}],
"code": 403,
"message": "Access Not Configured. The API is not enabled for your project, or 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 configuration."
}
}
我该如何解决这个问题?
【问题讨论】:
-
请描述您的项目。你用的是android sdk吗?
-
您必须每行使用 SHA1 证书指纹和包名称(用分号分隔)创建 android 密钥而不是服务器密钥。
标签: android api youtube-data-api android-youtube-api