Allow hangouts/meet link to be included in an event (#1110)

This commit is contained in:
Ross Scroggs
2020-03-02 15:34:59 -08:00
committed by GitHub
parent ee89aa649a
commit 0f8bf26746
2 changed files with 4 additions and 0 deletions

View File

@@ -1004,6 +1004,7 @@ The following attributes are equivalent:
(end (allday <Date>)|<Time>)|
guestscantinviteothers|
guestscantseeothers|
hangoutsmeet|
(id <String>)|
(location <String>)|
(noreminders| (reminder <Number> email|popup|sms))|

View File

@@ -3724,6 +3724,9 @@ def doCalendarAddEvent():
elif myarg == 'colorindex':
body['colorId'] = getInteger(sys.argv[i+1], myarg, CALENDAR_EVENT_MIN_COLOR_INDEX, CALENDAR_EVENT_MAX_COLOR_INDEX)
i += 2
elif myarg == 'hangoutsmeet':
body['conferenceData'] = {'createRequest': {'requestId': f'{str(uuid.uuid4())}'}}
i += 1
else:
controlflow.invalid_argument_exit(sys.argv[i], "gam calendar <email> addevent")
if ('recurrence' in body) and (('start' in body) or ('end' in body)):