Open
Description
PLEASE READ:
We are using https://developers.google.com/my-business/reference/qanda/rest/v1/locations.questions/list to get locations questions and answers but every time i am getting error
error": {
"code": 400,
"message": "Request contains an invalid argument."
}
<?php
use Google\Service\MyBusinessQA;
public function getLocationsQA($googleClient, $locationName, $nextPageToken = null)
{
try {
$optParams = [
'pageSize' => 10,
'pageToken' => $nextPageToken,
];
$service = new MyBusinessQA($googleClient);
$response = $service->locations_questions->listLocationsQuestions($locationName, $optParams);
return $response;
} catch (\Exception $e) {
Log::warning('Error message: ' . $e->getMessage());
}
}
Metadata
Metadata
Assignees
Labels
No labels