For my application i want to get the reviews for the particular location so that im using below api and its working fine.
$location = "*location*";
$access_token = "*token*";
$url = "https://mybusiness.googleapis.com/v4/".$location_name."/reviews?access_token=".$access_token;
How can i get reviews within the date range so far i have tried below code..
$url = "https://mybusiness.googleapis.com/v4/".$location_name."/reviews?access_token=".$access_token."&startTime=".$start_time."&endTime=".$end_time;
The above code is not working please give me any suggestion.
I referred this link Time range filter link
Kindly help me to get the solution.
Sorry, but Google doesn't documented the "timeRange" as a query parameter option.
The only options are pageSize
, pageToken
, and orderBy
.
Source: https://developers.google.com/my-business/reference/rest/v4/accounts.locations.reviews/list