CalendarListEntry未与Google PHP API一起显示

CalendarListEntry未与Google PHP API一起显示,php,google-api,google-calendar-api,google-api-client,Php,Google Api,Google Calendar Api,Google Api Client,我正在尝试使用以下代码示例添加一个条目: <?php $service = new \Google_Service_Calendar($client); $calendarListEntry = new \Google_Service_Calendar_CalendarListEntry(); $calendarListEntry->setId($calendarId); $calendarListEntry->setHidden(false); $calendarListE

我正在尝试使用以下代码示例添加一个条目:

<?php

$service = new \Google_Service_Calendar($client);
$calendarListEntry = new \Google_Service_Calendar_CalendarListEntry();
$calendarListEntry->setId($calendarId);
$calendarListEntry->setHidden(false);
$calendarListEntry->setSelected(true);
$calendarListEntry = $service->calendarList->insert($calendarListEntry);

我认为您的代码运行良好。默认情况下,当使用用户的日历列表时,该列表可见,或者默认值hidden为False
selected
参数显示日历内容是否显示在日历UI中。可选。默认值为False。尝试使用日历Android应用程序确认您的条目已添加。该条目已添加到日历Android应用程序中,但用户必须进入设置才能显示它。你认为有可能绕过这个吗?我认为你的代码运行得很好。默认情况下,当使用用户的日历列表时,该列表可见,或者默认值hidden为False
selected
参数显示日历内容是否显示在日历UI中。可选。默认值为False。尝试使用日历Android应用程序确认您的条目已添加。该条目已添加到日历Android应用程序中,但用户必须进入设置才能显示它。你认为有可能绕过这个吗?