Solicitud por lotes de la API de Google Calendar por lotes PHP
Estoy tratando de enviar un montón de eventos a través de una solicitud de lote a Google Calendar. Pero no puedo averiguar cómo hacerlo.https://developers.google.com/google-apps/calendar/batch no me ayuda
require_once 'google-api-php-client/src/Google_Client.php';
require_once 'google-api-php-client/src/contrib/Google_CalendarService.php';
$client = new Google_Client();
$client->setUseBatch(true);
$batch = new Google_BatchRequest();
$uri = 'http://www.google.com/calendar/feeds/default/private/full/batch';
$batchContent = file_get_contents('xxxxx/google-api-php-client/batch.xml');
$batch->add($batchContent);
batch.xml contiene 2 -artículos. Eso es todo hasta ahora. Pero nada pasó.
Yo tambien lo he intentado
$batch->execute()
Pero eso arroja error sin mensaje.
Mi pregunta: ¿Cómo enviar un lote a través de PHP a Google Calendar?