I'm trying to retrieve all events from non-default calendar feed and
getting exception:
Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
message ' in C:\wamp\bin\php\php5.3.1\PEAR\Zend\Gdata\App.php on line
709
Zend_Gdata_App_HttpException: Expected response code 200, got 400
The 'max-results' parameter is not supported on this resource
in C:\wamp\bin\php\php5.3.1\PEAR\Zend\Gdata\App.php on line 709
My code
/* @var $query \Zend_Gdata_Calendar_EventQuery */
$link = $customCalender->getSelfLink()->getHref();
$query = $this->service->newEventQuery($link);
$query->setUser('default');
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setMaxResults(200);
return $this->service->getCalendarEventFeed($query);
Thanks for any help!
Fred
没有评论:
发表评论