Hi,
i´ve tried to update an event with the function from the Zend
Framework PHP Examples
function updateEvent ($client, $eventId, $newTitle)
{
$gdataCal = new Zend_Gdata_Calendar($client);
if ($eventOld = getEvent($client, $eventId)) {
echo "Old title: " . $eventOld->title->text . "<br />\n";
$eventOld->title = $gdataCal->newTitle($newTitle);
try {
$eventOld->save();
} catch (Zend_Gdata_App_Exception $e) {
var_dump($e);
return null;
}
$eventNew = getEvent($client, $eventId);
echo "New title: " . $eventNew->title->text . "<br />\n";
return $eventNew;
} else {
return null;
}
}
After that i got following error message:
Zend_Gdata_App_HttpException Object
(
[_httpClientException:protected] =>
[_response:protected] => Zend_Http_Response Object
(
[version:protected] => 1.1
[code:protected] => 400
[message:protected] => Bad Request
[headers:protected] => Array
(
[Content-type] => text/plain; charset=UTF-8
[Transfer-encoding] => chunked
[Cache-control] => private
[Date] => Mon, 17 Sep 2007 16:26:01 GMT
[Server] => GFE/1.3
)
[body:protected] => 53
[Line 1, Column 1558, element gd:attendeeStatus] Missing attribute:
'value'
0
)
[message:protected] => Expected response code 200, got 400
[string:private] =>
[code:protected] => 0
[file:protected] => /kunden/96274_74206/ZendFramework/library/Zend/
Gdata/App.php
[line:protected] => 515
...
What is wrong in my script? Do i have to set an gd:attendeeStatus
value? Where do i set this value?
I hope you can help me.
Thanks.
Jochen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---