【发布时间】:2021-11-24 01:15:42
【问题描述】:
我正在尝试使用Google Meet Audit Activity Events API 来获取会议室活动的报告。但是我可以看到结果与实际不匹配,例如:我开始一个新的会议室,并在房间里呆了大约 5 分钟,但在加入房间后 2 分钟并且所有人都离开了房间,我运行https://admin.googleapis.com/admin/reports/v1/activity/users/all/applications/meet?eventName=call_ended,没有返回任何记录,我必须等待几分钟或5分钟以上,具有该URL的报告将返回完整数据。这是谷歌的错误还是因为我的 PHP 脚本有问题?会议进行时是否可以实时获取报告?
这是我的示例脚本:
$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();
【问题讨论】:
标签: google-api-php-client google-admin-sdk google-reporting-api