[英]Google Reports API for Meet attendance - strange conference_id
I'm trying to query attendance for a Google Meet conference created via Google Calendars API. I've found that the conferenceId returned by Calendar API > Events > insert it's different from the one I can use to filter in Reports API.我正在尝试查询通过 Google 日历 API 创建的 Google Meet 会议的出席情况。我发现日历 API > 事件 > 插入它返回的 conferenceId 与我可以用来在报告 API 中过滤的不同。
Does anyone knows why?有谁知道为什么? How can I query attendance based on the data returned by Calendar API > Events > insert?
如何根据Calendar API > Events > insert返回的数据查询考勤?
Steps to reprocuduce:重现步骤:
Insert calendar events (be sure to add conferenceData structure to create also the Meet conference): https://developers.google.com/calendar/api/v3/reference/events/insert插入日历事件(一定要添加 conferenceData 结构以创建 Meet 会议): https://developers.google.com/calendar/api/v3/reference/events/insert
Use the conference使用会议
List activities from Report API and check the conference_id: https://developers.google.com/admin-sdk/reports/reference/rest/v1/activities/list列出 Report API 中的活动并查看 conference_id: https://developers.google.com/admin-sdk/reports/reference/rest/v1/activities/list
It seems that the conferenceId
from the Calendar event object is different from the conference_id
in the Reports (note that the name is different).日历事件 object 中的
conferenceId
似乎与 Reports 中的conference_id
不同(注意名称不同)。 The activities.list
output also has another field called meeting_code
, it's also under items.events.parameters
: activities.list
output 还有另一个名为meeting_code
的字段,它也在items.events.parameters
下:
{
"name": "meeting_code",
"value": "ASDFASFFGJ"
}
This one matches the conferenceId
in a calendar event, except that it's without dashes and capitalized, so for the example "conferenceId": "asd-fasf-fgj"
in a Calendar Event object you'll find "meeting_code": "ASDFASFFGJ"
in the activity reports.这与日历事件中的
conferenceId
匹配,除了它没有破折号和大写,因此对于日历事件object 中的示例"conferenceId": "asd-fasf-fgj"
,您将在中找到"meeting_code": "ASDFASFFGJ"
活动报告。 So you can just remove the dashes and capitalize the conferenceId
to match it to its corresponding meeting_code
.因此,您只需删除破折号并将
conferenceId
大写以将其与其对应的meeting_code
相匹配。
As to why this discrepancy exists, my guess after reading the definition of the Meet activity events is that it tracks different "conference sessions" within the same meeting code.至于为什么存在这种差异,我在阅读Meet 活动事件的定义后猜测是它在同一会议代码中跟踪不同的“会议会话”。 For example, if you join the meeting
asd-fasf-fgj
it will create a new conference_id
until everyone leaves the meeting.例如,如果您加入会议
asd-fasf-fgj
它将创建一个新的conference_id
直到所有人都离开会议。 Then if the same meeting code is used again a different conference_id
will be created to track the new session and so on.然后,如果再次使用相同的会议代码,将创建一个不同的
conference_id
来跟踪新的 session 等等。
I did some cursory testing and the logs do create a different conference_id
every time I joined the same Meeting code.我做了一些粗略的测试,每次我加入相同的会议代码时,日志都会创建一个不同的
conference_id
。 I didn't have multiple accounts to test so I'm not sure if two users can have matching IDs, but I may be close.我没有要测试的多个帐户,所以我不确定两个用户是否可以拥有匹配的 ID,但我可能很接近。 I couldn't find any in-depth documentation so it would require more testing to figure out exactly how it works.
我找不到任何深入的文档,因此需要更多测试才能弄清楚它是如何工作的。
Either way, to address your immediate concern, you should be able to match the Event's conferenceId
with the Report's meeting_code
to track the attendance.无论哪种方式,为了解决您的直接问题,您应该能够将 Event 的
conferenceId
与 Report 的meeting_code
相匹配以跟踪出席情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.