I tried to retrieve google reviews like this :
do
try{
dump($locationName);
if (!empty($this->googleReviews))
$listReviewsResponse = $this->googleReviews->listAccountsLocationsReviews($locationName, array('pageSize' => 50,
'pageToken' => $listReviewsResponse->nextPageToken));
$reviewsList = $listReviewsResponse->getReviews();
foreach ($reviewsList as $index => $review) {
...
while($listReviewsResponse->nextPageToken)
But this call listAccountsLocationsReviews return
{
"error": {\n
"code": 404,\n
"message": "Requested entity was not found.",\n
"errors": [\n
{\n
"message": "Requested entity was not found.",\n
"domain": "global",\n
"reason": "notFound"\n
}\n
],\n
"status": "NOT_FOUND"\n
}\n
}
Have you an idea about this problem ? Thank you in advance