I'm trying to use Google Meet Audit Activity Events API
to get the report of the meeting room activities. But as i can see that the result is not match with the real, for example: I start a new meeting room, and stay in the room for about 5 minutes, but after joined room for 2 minutes and also after all people leave the room, i run the https://admin.googleapis.com/admin/reports/v1/activity/users/all/applications/meet?eventName=call_ended
, there is no any records was returned, i have to wait for a couple minutes or more than 5 minutes later, the report with that URL will return full data. Is this a bug of Google or because of my PHP script having a problem? Is there anyway to get the report realtime when the meeting is ocurring?
Here is my sample script:
$client = $this->getClient();
$client->addScope('https://www.googleapis.com/auth/admin.reports.audit.readonly');
$client->setSubject('<email_of_user>');
$service = new Google\Service\Reports($this->client);
$userKey = 'all';
$applicationName = 'meet';
$optParams = Array('eventName' => $eventName);
$reports = $service->activities->listActivities($userKey, $applicationName, $optParams);
print_r($reports->getItem());
exit();