te')); return $arr; } /* 遍历用户所有主题 * @param $uid 用户ID * @param int $page 页数 * @param int $pagesize 每页记录条数 * @param bool $desc 排序方式 TRUE降序 FALSE升序 * @param string $key 返回的数组用那一列的值作为 key * @param array $col 查询哪些列 */ function thread_tid_find_by_uid($uid, $page = 1, $pagesize = 1000, $desc = TRUE, $key = 'tid', $col = array()) { if (empty($uid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('uid' => $uid), array('tid' => $orderby), $page, $pagesize, $key, $col); return $arr; } // 遍历栏目下tid 支持数组 $fid = array(1,2,3) function thread_tid_find_by_fid($fid, $page = 1, $pagesize = 1000, $desc = TRUE) { if (empty($fid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('fid' => $fid), array('tid' => $orderby), $page, $pagesize, 'tid', array('tid', 'verify_date')); return $arr; } function thread_tid_delete($tid) { if (empty($tid)) return FALSE; $r = thread_tid__delete(array('tid' => $tid)); return $r; } function thread_tid_count() { $n = thread_tid__count(); return $n; } // 统计用户主题数 大数量下严谨使用非主键统计 function thread_uid_count($uid) { $n = thread_tid__count(array('uid' => $uid)); return $n; } // 统计栏目主题数 大数量下严谨使用非主键统计 function thread_fid_count($fid) { $n = thread_tid__count(array('fid' => $fid)); return $n; } ?>How to Temporarily Disable a Google Meet Link Until Meeting Start Time Using .NET API? - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to Temporarily Disable a Google Meet Link Until Meeting Start Time Using .NET API? - Stack Overflow

programmeradmin3浏览0评论

I’ve been working on integrating Google Meet with my application using the Google Calendar API in .NET. The requirement is: 1. Create a Google Meet meeting in advance. 2. Save the meeting link and share it with attendees. 3. Disable the Google Meet link until the scheduled start time (for security reasons). 4. When the meeting starts, my scheduler will re-enable access automatically.

I have successfully implemented this for Microsoft Teams, Zoom, and other platforms, where they provide API-level controls to enable/disable a meeting link dynamically. However, I am struggling to achieve the same with Google Meet.

What I Tried: 1. Setting GuestsCanModify = false in the event creation - This prevents guests from modifying the event but does not disable the Meet link. 2. Removing the ConferenceData from the event before the meeting starts

*calendarEvent.ConferenceData = null;
var updateRequest = service.Events.Update(calendarEvent, "primary", eventId);
updateRequest.ConferenceDataVersion = 1;
updateRequest.Execute();*

•   This successfully removes the Meet link, but it does not allow re-enabling the link later.

3.  Moving the event to a future date

*calendarEvent.Start.DateTime = calendarEvent.Start.DateTime.Value.AddHours(2);
calendarEvent.End.DateTime = calendarEvent.End.DateTime.Value.AddHours(2);*

•   This reschedules the event but does not restrict early joining if attendees have the original link.

4.  Marking the event as Status = "cancelled" before the meeting starts and restoring it later

calendarEvent.Status = "cancelled"; // Disables event temporarily

•   This grays out the event but does not prevent people from using the Meet link if they have it.

Expected Behavior:

I need a way to: • Create the Google Meet event and store the link. • Ensure that the Meet link does not allow entry until the scheduled start time. • Re-enable the Meet link when the meeting starts.

Key Constraints: • I am using .NET API for Google Meet (Google Calendar API). • The Google Admin Console option (disabling Quick Access) is not a preferred solution because I need per-meeting control via API.

Question:

Is there any way to temporarily disable access to a Google Meet link until the meeting starts, using the Google Calendar API in .NET? If Google Meet does not support this, is there an alternative approach?

Would appreciate any insights! Thanks.

I’ve been working on integrating Google Meet with my application using the Google Calendar API in .NET. The requirement is: 1. Create a Google Meet meeting in advance. 2. Save the meeting link and share it with attendees. 3. Disable the Google Meet link until the scheduled start time (for security reasons). 4. When the meeting starts, my scheduler will re-enable access automatically.

I have successfully implemented this for Microsoft Teams, Zoom, and other platforms, where they provide API-level controls to enable/disable a meeting link dynamically. However, I am struggling to achieve the same with Google Meet.

What I Tried: 1. Setting GuestsCanModify = false in the event creation - This prevents guests from modifying the event but does not disable the Meet link. 2. Removing the ConferenceData from the event before the meeting starts

*calendarEvent.ConferenceData = null;
var updateRequest = service.Events.Update(calendarEvent, "primary", eventId);
updateRequest.ConferenceDataVersion = 1;
updateRequest.Execute();*

•   This successfully removes the Meet link, but it does not allow re-enabling the link later.

3.  Moving the event to a future date

*calendarEvent.Start.DateTime = calendarEvent.Start.DateTime.Value.AddHours(2);
calendarEvent.End.DateTime = calendarEvent.End.DateTime.Value.AddHours(2);*

•   This reschedules the event but does not restrict early joining if attendees have the original link.

4.  Marking the event as Status = "cancelled" before the meeting starts and restoring it later

calendarEvent.Status = "cancelled"; // Disables event temporarily

•   This grays out the event but does not prevent people from using the Meet link if they have it.

Expected Behavior:

I need a way to: • Create the Google Meet event and store the link. • Ensure that the Meet link does not allow entry until the scheduled start time. • Re-enable the Meet link when the meeting starts.

Key Constraints: • I am using .NET API for Google Meet (Google Calendar API). • The Google Admin Console option (disabling Quick Access) is not a preferred solution because I need per-meeting control via API.

Question:

Is there any way to temporarily disable access to a Google Meet link until the meeting starts, using the Google Calendar API in .NET? If Google Meet does not support this, is there an alternative approach?

Would appreciate any insights! Thanks.

Share Improve this question asked 2 days ago OmranOmran 334 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Alternative to disabling an event's Google Meet link

After exploring the Google Calendar API through available documentation and using the API Explorer here it seems that there is no way to directly accomplish what you want but one alternative that you can explore is creating an event that has no Google Meet Link and then in your code set a timer(when the meeting will start) before running the function that will update the same event and add an associated Google Meet link to it.

To update and add a Google Meet link to an existing event, you will need to set the value of the parameter called conferenceDataVersion to 1 and then add the following fields:

 "conferenceData": {
    "createRequest": {
      "requestId": "samp111",
      "conferenceSolutionKey": {
        "type": "hangoutsMeet"
      }

Sample Output

Before running the API

After running the API

References:

Using Calendar API to create events with Meet

发布评论

评论列表(0)

  1. 暂无评论