【发布时间】:2016-10-31 23:24:32
【问题描述】:
我正在尝试使用 youtube api v3 中的视频 ID 获取 youtube 视频详细信息。使用这个网址:
https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=AIzaSyCA-EL5sT5LCQnYauNMm2Ku_PukvBcz6ms%20&part=snippet,contentDetails
我得到了回报:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "ipRefererBlocked",
"message": "The Android package name and signing-certificate fingerprint, null and null, do not match the app restrictions configured on your API key. Please use the API Console to update your key restrictions.",
"extendedHelp": "https://console.developers.google.com/apis/credentials?project=861763996907"
}
],
"code": 403,
"message": "The Android package name and signing-certificate fingerprint, null and null, do not match the app restrictions configured on your API key. Please use the API Console to update your key restrictions."
}
}
api 密钥是我在谷歌开发者控制台中使用我的 SHA1 代码注册应用程序后得到的密钥。如何克服这个错误?
【问题讨论】: