私は CakePHP で ZEND GData API を使用して、カレンダーのリストをセットアップして取得しようとしました。
これらはすべて機能しますが、カレンダー イベントを取得しようとすると、不適切なリクエスト エラーが発生し、解決方法がわかりません。スクリプトの実行時に表示されるエラー メッセージが続くコードを次に示します。
*注:XAMPPを使用して自分のマシンからこれをテストしています
//GET LIST OF EVENTS
$index = 0;
foreach($listFeed as $list) {
$query = $service->newEventQuery($list->link[0]->href);
// Set different query parameters
$query->setUser('default');
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
// Get the event list
try {
$eventFeed[$index] = $service->getCalendarEventFeed($query);
} catch (Zend_Gdata_App_Exception $e) {
echo "Error: " . $e->getResponse() . "<br />";
}
$index++;
}
エラーメッセージは次のとおりです。
エラー: HTTP/1.1 400 Bad Request Content-type: text/html; charset=UTF-8 Date: Mon, 14 May 2012 04:04:41 GMT Expires: Mon, 14 May 2012 04:04:41 GMT Cache-control: private, max-age=0 X-content-type-options: nosniff X-frame-options: SAMEORIGIN X-xss-protection: 1; mode=block サーバー: GSE 接続: close 無効なリクエスト URI
お時間をいただきありがとうございます。