I want to update GMB business hours via GMB API.
$timePeriod = new Google_Service_MyBusiness_TimePeriod();
$timePeriod->setOpenDay("MONDAY");
$timePeriod->setOpenTime("08:00");
$timePeriod->setCloseTime("10:00");
$timePeriod->setCloseDay("MONDAY");
$businessHours = new Google_Service_MyBusiness_BusinessHours();
$businessHours->setPeriods($timePeriods);
$location = new Google_Service_MyBusiness_Location();
$location->setName($name);
$location->setRegularHours($businessHours);
$params=['updateMask'=>"regularHours"];
$updateLocation = $mybusinessService->accounts_locations->patch($name,$location,$params);
This is my code and it works well. But how to set a day is closed with this GMB API.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire