将与会者添加到 Google 日历事件

Adding attendees to a Google calendar event

我有 VB 应用程序可以在 Google 日历中创建事件。它是 v3 库。

它支持弹出提醒通知,但现在我想支持电子邮件通知。

我做了更多研究,发现了一个帮助页面,该页面指示可以向活动参与者发送电子邮件通知。

但我找不到说明如何将与会者添加到新活动的教程。

感谢您的建议。发错地方了会重新发。

这应该可以做到..

Private Sub AddAttendeeToEvent(calEvent As [Event], name As String, email As String, comment As String, responseStatus as String)
    Dim attendee As New EventAttendee
    attendee.DisplayName = name
    attendee.Email = email
    attendee.Comment = comment
    attendee.ResponseStatus = responseStatus
    calEvent.Attendees.Add(attendee)
End Sub

如果您愿意,当然可以包含其他属性。不要忘记“.ResponseStatus”字符串仅限于 "declined"、"accepted"、"tentative" 或 "needsAction"