如何通过PHP中的谷歌日历API检索与我的谷歌日历共享的同事的日历名称?

I am trying to retrieve the colleague's calendar name by using the code as follows, but it doesn't work. code:

$calendarList  = $service->calendarList->listCalendarList();
foreach ($calendarList->getItems() as $calendarListEntry)
{
    print_r($calendarListEntry);
}

First make sure your authentication SCOPE is Calendar:

define('SCOPES', implode(' ', array(
  Google_Service_Calendar::CALENDAR)
));

Secondly, you should use the example snippets provided by Google on every feature documentation. Calendar List Source