我想使用此代码在Google日历上添加日历。
function addCalendar($client, $nomeInsegnamento, $codiceInsegnamento){
$calendar = new Calendar();
$calendar->setSummary($nomeInsegnamento." - ".$codiceInsegnamento);
$calendar->setTimeZone('Europe/Rome');
return $client -> calendars -> insert($calendar);
}
我已导入PHP的Google API库
require_once '../src/Google_Client.php';
require_once '../src/contrib/Google_CalendarService.php';
但总是会出现此错误
Fatal error: Class 'Calendar' not found in D:\Programmi\EasyPHP-DevServer-13.1VC9\data\localweb\projects\GCE\prova.php on line 182