Hea*_*lly 11 google-places-api
我正在尝试使用Google API地理编码服务,如下所示:
https://maps.googleapis.com/maps/api/geocode/json?&address=melbourne&key=xxx&sensor=false
Run Code Online (Sandbox Code Playgroud)
我得到的回应总是:
{
"results" : [],
"status" : "REQUEST_DENIED"
}
Run Code Online (Sandbox Code Playgroud)
我启用了Google Maps API v3和Places API服务.我甚至设置了账单.我尝试删除并重新创建了许多键 - 所有键都具有相同的效果.我已尝试过来自不同网络的服务,结果也相同.
在Google API信息中心的报告部分中,我可以看到请求累积的数量,但响应总是如此Request_Denied.
有人可以帮忙吗?
Jos*_*osh 22
在以下情况下,Places API会返回"status":"REQUEST_DENIED":
You have not activated the Places API Service in the services tab of the APIs console.
The key parameter is missing from your request.
The key parameter does not match the your API key in the API Access tab of the APIs console.
Your API key has not been correctly set up in the API Access tab of the APIs Console:
If you are using a Browser key, check that your allowed Referer(s) are correct.
If you are using a Server key, check that your allowed IP(s) are correct.
Android and iOS keys are not supported, please use a Browser or Server key.
The request was not sent as an HTTPS request, HTTPS is required for all Web Service requests.
The incorrect HTTP method was used to send the request:
All requests must be sent as a GET request except for Place Actions.
All Place Actions must be sent as a POST request.
Run Code Online (Sandbox Code Playgroud)
https://developers.google.com/places/faq#why_do_i_keep_receiving_status_request_denied
我没有列出生产服务器的IP地址.
| 归档时间: |
|
| 查看次数: |
21067 次 |
| 最近记录: |