Google api 谷歌日历Java API停止向与会者发送邀请

Google api 谷歌日历Java API停止向与会者发送邀请,google-api,google-calendar-api,google-api-java-client,service-accounts,google-iam,Google Api,Google Calendar Api,Google Api Java Client,Service Accounts,Google Iam,我的应用程序有一个gserviceaccount,它向一些Google日历事件发送邀请,因此我使用JavaAPI(确切地说是classcom.Google.API.services.Calendar.Calendar)。一年多以来,它一直很有魅力,但现在我遇到了一些麻烦,因为它刚刚停止工作。我仍然可以通过API创建新活动并邀请参与者,稍后我可以看到它们被正确保存(从API获取此活动时,我可以看到参与者的电子邮件),但参与者没有收到任何电子邮件或其他类型的邀请(他们根本不知道该活动) 我已经尝试过

我的应用程序有一个gserviceaccount,它向一些Google日历事件发送邀请,因此我使用JavaAPI(确切地说是class
com.Google.API.services.Calendar.Calendar
)。一年多以来,它一直很有魅力,但现在我遇到了一些麻烦,因为它刚刚停止工作。我仍然可以通过API创建新活动并邀请参与者,稍后我可以看到它们被正确保存(从API获取此活动时,我可以看到参与者的电子邮件),但参与者没有收到任何电子邮件或其他类型的邀请(他们根本不知道该活动)

我已经尝试过删除和邀请活动,但什么都没有发生。当我使用普通日历应用程序创建活动,然后邀请参加此活动(使用应用程序,而不是API)时,我会正确地收到邀请

import com.google.api.services.calendar.model.Event;
import com.google.api.services.calendar.model.EventAttendee;


Event event = service.events().get(CALENDAR_ID, columnDay.getGoogleCalendarEvent().getGoogleEventId()).execute();
        event.getAttendees().add(new EventAttendee().setEmail("foo@example.com"));
        service.events().update(CALENDAR_ID, event.getId(), event).setSendNotifications(Boolean.TRUE).execute();

我希望保存与会者并发送电子邮件,但只保存了一名与会者,我看不到任何类型的邀请(电子邮件或任何东西)。我没有收到任何错误。

问题已被记录,可能重复