Google_CalendarService を使用してすべてのイベントを取得しようとしています。これまでのところ、定期的なイベントですべてを取得していますが、表示されないイベントがいくつかあります。
例: 22-okt、23-okt、および 24-okt にイベントがあります。それらはすべて通常のイベントですが、取得しているのは 22 と 23 だけです。24 は表示されませんが、私のカレンダーには存在します。
【追記】また不具合発見!アプリを介して既存のイベントを編集するたびに、イベントは消えますが、カレンダーには存在します!
データを取得するための私のコードは次のとおりです。
API 設定:
function calSettings(){
    $client = new Google_Client();
    $cal = new Google_CalendarService($client);
    $client->setAccessType('offline');
    if (isset($_GET['code'])) {
        $client->authenticate($_GET['code']);
        $_SESSION['token'] = $client->getAccessToken();
        header('Location: http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
    }
    if (isset($_SESSION['token'])) {
        $client->setAccessToken($_SESSION['token']);
        $sessionToken = json_decode($_SESSION['token']);
        $this->Cookie->write('token', $sessionToken->refresh_token, false, '1 month');
    }
    $cookie = $this->Cookie->read('token');
    if(!empty($cookie)){
        $client->refreshToken($this->Cookie->read('token'));
    }
    $serviceArr = array('client' => $client, 'service' => $cal);
    return $serviceArr;
}
イベントを取得:
public function initCalendar($ownerCalendarId = null, $eventID = null){
    $serviceArr = $this->calSettings();
    $client = $serviceArr['client'];
    $cal = $serviceArr['service'];
    $wandaCalendarId = 'gmail@gmail.com';
    if ($client->getAccessToken()) {
        /************* Code entry *************/
        if($eventID != null){
            $events = $cal->events->get($ownerCalendarId, $eventID);
        }else{
            $ownerEvents = $cal->events->listEvents($ownerCalendarId);
            if($ownerCalendarId != $wandaCalendarId){
                $wandaEvents = $cal->events->listEvents($wandaCalendarId);
                $events = array('owner' => $ownerEvents, 'wanda' => $wandaEvents);
            }else{
                $events = array('owner' => $ownerEvents, 'wanda' => '');
            }
        }
        return $events;
    }else{
        /************* Not connected to google calendar code *************/
        $authUrl = $client->createAuthUrl();
        $returnArr = array('status' => 'false', 'message' => "<a class='login' href='$authUrl'>Connect Me!</a>");
        return $returnArr;
    }
}
このコードでは、ほとんどのイベントを取得できますが、他のイベントが表示されないのはなぜですか? 誰かが以前にこの問題を抱えていましたか?