Google日历API未显示组织者名称并发送通知电子邮件-Laravel



我正在为Google日历API集成使用Laravel软件包。因此,我只能与参加者一起创建活动。我尝试过创建组织者,但没有出现。以下是我使用的代码。这里的组织者名称默认为创建API凭据的电子邮件,也没有到达电子邮件通知。

我正在使用的软件包是Spatie/Laravel-Google-Calendar

谁能告诉我我在这里做错了什么?

Event::create([
               'name' => 'Latest Event dsfdsfsdfsdf',
               'location' => '800 Howard St., San Francisco, CA 94103',
               'description' => 'A chance to hear more about Google's developer products.',           
               'startDateTime' => CarbonCarbon::now(),
               'endDateTime' => CarbonCarbon::now()->addHour(),
               'sendNotifications' => true,
               'sendUpdates' => 'all',
               'organizer' => array('email' => 'test@gmail.com','displayName' => 'Darshan')
               'attendees' => array(
                array('email' => 'test@gmail.com','displayName' => 'Darshan', 'organizer' => true),
                array('email' => 'darshan@test.com','displayName' => 'Ryan')
              )
            ]); 

该软件包不支持添加组织者。您可以将功能添加到软件包中,也可以直接使用Google Apiclient。Google SDK确实具有setOrganizer方法,该方法应类似于事件类中调用的setAttendees方法。

显然"组织者"一词有点误导,实际上是指事件创建的日历。看看这个问题,并评论。

最新更新