哪些 API 可通过 Google API Client Library for PHP 访问?
Which APIs are accessible through Google API Client Library for PHP?
我想使用 it 访问 Google 个地方 API Web 服务,但找不到相应的 class。
文档说:
Google APIs give you programmatic access to Google Maps, Google Drive, YouTube, and many other Google products.
我做错了吗?在库中包含 API 的标准是什么?
PHP 客户端库不包含 Google 个地点的 class;不过,它允许您直接发出 HTTP 请求。由于 Google Places API 也是 RESTful(示例 https://developers.google.com/places/web-service/search) then you can use the PHP client library to make HTTP requests directly. Please read the documentation here https://github.com/google/google-api-php-client#making-http-requests-directly。这应该可以帮助您入门。希望这对您有所帮助!
我想使用 it 访问 Google 个地方 API Web 服务,但找不到相应的 class。
文档说:
Google APIs give you programmatic access to Google Maps, Google Drive, YouTube, and many other Google products.
我做错了吗?在库中包含 API 的标准是什么?
PHP 客户端库不包含 Google 个地点的 class;不过,它允许您直接发出 HTTP 请求。由于 Google Places API 也是 RESTful(示例 https://developers.google.com/places/web-service/search) then you can use the PHP client library to make HTTP requests directly. Please read the documentation here https://github.com/google/google-api-php-client#making-http-requests-directly。这应该可以帮助您入门。希望这对您有所帮助!