Google カレンダー API を操作するためにhttp://www.ibm.com/developerworks/library/x-googleclndr/のチュートリアルに従っていますが、奇妙な問題が発生しています。私のPHPコードは次のようになります
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Calendar');
Zend_Loader::loadClass('Zend_Http_Client');
//create authenticated HTTP client for Calendar service
$gcal = Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
$user = "daniel.lieberman610@gmail.com";
$pass = "*******";
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $gcal);
$gcal = new Zend_Gdata_Calendar($client);
//generate query to get event list
$query = $gcal->newEventQuery();
$query->setUser($user);
$query->setVisibility('private');
$query->setProjection('basic');
//get and parse calendar feed
//print output
try {
$feed = $gcal->getCalendarEventFeed($query);
echo "<!--comment-->\n";
} catch (Exception $e) {
echo "<!--different comment-->\n";
}
Zend_Gdata_App_Exception
エラー メッセージが表示されていないため、try ブロック内で何らかの例外が発生しています。何が間違っているのかわかりません。
また、私はここに沿ってPHPを学んでいます。どうもありがとうございました。