【发布时间】:2015-09-20 22:12:41
【问题描述】:
{
"error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address xxx.xxx.xxx.xxx, with empty referer",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
我整天都在尝试发出一个返回 JSON 对象的请求,如下所示: https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=cruise&key=API_KEY
我已尝试按照https://developers.google.com/places/android-api/signup 的指南进行操作。我已经阅读了很多帖子,比如How do I get a Google Places API key for my Android App,并制作了服务器密钥和 Android 密钥。我仍然收到此错误消息。
我已在开发者控制台中启用 Places API。
我想在 Android 应用中进行此查询,所以我需要 Android 密钥,对吗?有些帖子一直在说要获取服务器密钥。我感到很困惑。
我今天做了很多钥匙。我不知道有这个问题的人的所有其他帖子是否已经过时,或者我只是在做一些完全错误的事情。我在命令行上使用 keytool 获得了 SHA1 指纹。我仍然不断收到请求被拒绝。
【问题讨论】: