title: Google calendar using php does not show shared calendar list
body: <p>I am using JSON key file authorization for getting calendars list so i can enter new calendar event.
  The problem is that at specific google account i am getting calendar list and when following same instruction on different google account the list is empty.</p>
  
  <p>This is the code:</p>
  
  <pre><code>require_once 'vendor//autoload.php';
  $client = new Google_Client();
  putenv('GOOGLE_APPLICATION_CREDENTIALS=' . $credenential);
  $client-&gt;useApplicationDefaultCredentials();
  $client-&gt;setApplicationName("Quickstart");
  $client-&gt;setScopes(Google_Service_Calendar::CALENDAR);
  $client-&gt;setAccessType('offline');
  $service = new Google_Service_Calendar($client);
  $calendarList = $service-&gt;calendarList-&gt;listCalendarList();
  $startDateTime = DateTime::createFromFormat("Y-m-d H:i:s", $start);
  $endDateTime = DateTime::createFromFormat("Y-m-d H:i:s", $end);
  $event = new Google_Service_Calendar_Event(array(
    'summary' =&gt; $title_event,
    'location' =&gt; $where_event,
    'description' =&gt; $content_event,
    'start' =&gt; array(
      'dateTime' =&gt; rawurldecode($start)
    ),
    'end' =&gt; array(
      'dateTime' =&gt; rawurldecode($end)
    )
  ));
  
  foreach($calendarList as $item) {
      if ( strcasecmp( $item['summary'], $google_email ) == 0 ){
        $calendarId = $item['id'];
      }
  }
  $event = $service-&gt;events-&gt;insert($calendarId, $event);
  </code></pre>