简体   繁体   English

谷歌报告 API 参加会议 - 奇怪的 conference_id

[英]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 中过滤的不同。

  1. conferenceId from Calendar API --> ["conferenceId"]=>string(12) "xxx-xxxx-xxx"来自日历 API 的 conferenceId --> ["conferenceId"]=>string(12) "xxx-xxxx-xxx"
  2. conferenceId from Reports API{"name": "conference_id", "value": "xxxxxxx_12234XXXXXxxxxXX56"}来自 Reports API 的 conferenceId{"name": "conference_id", "value": "xxxxxxx_12234XXXXXxxxxXX56"}

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:重现步骤:

  1. 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

  2. Use the conference使用会议

  3. 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相匹配以跟踪出席情况。

Reference:参考:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否有 API 来获取 Google Meet 出席报告? - Is there an API to get Google Meet attendance report? 带有服务帐户的Google Reports API - Google Reports API with a service account Google G Suite商业报告API配置 - Google G Suite Business Reports API configuration 使用Google Calendar API从事件中删除资源(例如会议室) - Remove Resource (e.g. conference room) from an Event using Google Calendar API Google Reports API-report.customerUsageReports.get问题 - Google Reports API - reports.customerUsageReports.get issue Google Contacts API在创建联系人时出现奇怪的错误 - Google Contacts API strange error on contact creation 未通过 Google Calendar API (PHP) 自动创建 Google 日历会议链接 - Google calendar meet link not being created automatically via Google Calendar API (PHP) 如何在 Google 日历 API 中创建事件,并在 C# 中的 Google Meet 中进行视频会议? - How to create event in Google Calendar API with videoconference in Google Meet in C#? Google 日历 API:创建日历活动时无法获取 Google Meet 链接 - Google Calendar API: Cannot get Google Meet link while creating calendar event Google Reports API-日历审核活动事件 - Reports API Google - Calendar Audit Activity Events
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM