google places API返回使用urlConnection从android调用它,以及从凭据中提供的包中调用它。 仍然显示/返回以下作为json数据:
{
"error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address 120.59.69.127, with empty referer",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
尝试链接
尝试浏览器密钥或服务器密钥时,提取的json数据为
{ "error_message" : "This API project is not authorized to use this API.Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
答案 0 :(得分:0)
与error_message
一样,您的API密钥未配置为允许此用途。要使用该URL,请检查您