小编Bha*_*iya的帖子

如何在 php 中使用 Google MyBusiness API

我正在使用 Google MyBsiness API 来获取所有业务评论。但我无法熟悉 MYBusiness 中使用的 PHP 语法和 GET、POST 方法。

在誓言之后,这里是我用来获取评论的代码

$mybusinessService = new Google_Service_Mybusiness($client);
$accessToken = file_get_contents($credentialsPath);

$reviews = $mybusinessService->accounts_locations_reviews;
echo '<pre>';print_r($reviews->get('ArtechDev'));exit;
Run Code Online (Sandbox Code Playgroud)

但我收到错误 404(致命错误:未捕获异常 'Google_Service_Exception' 带有消息)

我确定我不知道如何传递 param 以及它需要哪些东西。我以位置为“ArtechDev”的帐户登录,也请告诉我我可以在哪里打电话

https://mybusiness.googleapis.com/v3/accounts/account_name/locations/location_name/reviews

谢谢

php api oauth-2.0 google-my-business-api

6
推荐指数
1
解决办法
9401
查看次数

如何使用商业API获取所有谷歌评论

我需要针对特定​​位置的所有谷歌评论,但我无法使用谷歌的业务API.这是获取请求的URL

https://mybusiness.googleapis.com/v3/accounts/account_name/locations/location_name/reviews 
Run Code Online (Sandbox Code Playgroud)

现在我的问题是param account_name和location_name的值是什么我怎么能得到它.

请回答示例位置示例

javascript php google-places-api google-my-business-api

5
推荐指数
2
解决办法
9310
查看次数