如何使用PHP my business api获得谷歌评论回复?
我正在为我的应用程序使用PHP Google MyBusiness API。我有商业评论 现在我想得到与某一特定评论相关的任何回复。我可以发布回复,但我想使用PHPGMBAPI获得评论的回复(回复) 我如何做到这一点?在您得到的回复中查看保存您回复的如何使用PHP my business api获得谷歌评论回复?,php,google-api,google-my-business-api,Php,Google Api,Google My Business Api,我正在为我的应用程序使用PHP Google MyBusiness API。我有商业评论 现在我想得到与某一特定评论相关的任何回复。我可以发布回复,但我想使用PHPGMBAPI获得评论的回复(回复) 我如何做到这一点?在您得到的回复中查看保存您回复的reviewReply对象 { "reviewId": string, "reviewer": { object(Reviewer) }, "starRating": enum(StarRating), "comment"
reviewReply
对象
{
"reviewId": string,
"reviewer": {
object(Reviewer)
},
"starRating": enum(StarRating),
"comment": string,
"createTime": string,
"updateTime": string,
"reviewReply": {
object(ReviewReply)
},
}
要获取评论,请使用Google\u Service\u MyBusiness\u AccountsLocationsReviews\u Resource的get方法
class Google_Service_MyBusiness_AccountsLocationsReviews_Resource extends Google_Service_Resource
{
/**
* Returns the specified review. This operation is only valid if the specified
* location is verified. Returns `NOT_FOUND` if the review does not exist, or
* has been deleted. (reviews.get)
*
* @param string $name The name of the review to fetch.
* @param array $optParams Optional parameters.
* @return Google_Service_MyBusiness_Review
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_MyBusiness_Review");
}
使用PHP如何获得它?我不知道如何通过复习、地点等。。在我看来,param这个名字是reviewID,文档中没有提到它。谢谢。如果你有,你应该分享。