【发布时间】:2018-02-19 05:54:31
【问题描述】:
我需要从谷歌企业帐户获取评论并显示在我的网站上。
I have used below curl method "https://maps.googleapis.com/maps/api/place/details/json?key=$api_key&placeid=$place_id" to get google business reviews.
I have correctly provided api key,place id also enabled Google Maps Geocoding and Geolocating . I have got below error. How can I fix?`
Error :
[error_message] => This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/places_backend?project=_
[html_attributions] => Array
(
)
[status] => REQUEST_DENIED
【问题讨论】:
-
您需要设置api密钥才能访问api。
-
报错信息很清楚,请问是什么问题?
-
您需要转到开发人员控制台仪表板,在最顶部有一个指向 API 库的链接。您可以在那里搜索和启用地点 API。您的项目默认没有API,您必须一一启用。
标签: php google-maps-api-3