Hi Stephan,

The editurl of an event is not meant to be a permanent URL to edit/
delete a particular event.  In fact, the editurl is a temporary
versioning ID associated that event, and it is only valid for a
limited duration.  It is intended to be retrieved fresh each time you
are about to perform an update/delete regarding for an event.

Hope that helps,
Austin

On Dec 3, 4:56 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Dear Google Calendar Employee,
>
> I do have the following problem with deleting an event from the Google
> Calendar DB...
>
> http://www.google.com/calendar/feeds/stephan.van.dongen%40gmail.com/p...
>
> 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, 03 Dec 2007 12:52:08
> GMT [Server] => GFE/1.3 [Connection] => Close ) [body:protected] => 14
> Invalid request URI. 0 )
> Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
> message 'Expected response code 200, got 400' in D:\projecten\minerva
> \minerva\lib\ZendGdata-1.0.2\library\Zend\Gdata\App.php:583 Stack
> trace: #0 D:\projecten\minerva\minerva\services\googleAgenda.php(104):
> Zend_Gdata_App->delete('http://www.goog...') #1 D:\projecten\minerva
> \minerva\action\action.php(122): deleteEventById('0') #2 D:\projecten
> \minerva\minerva\action\action.php(15): deleteEvent() #3 D:\projecten
> \minerva\minerva\index.php(62): actionDispatcher('deleteEvent') #4
> {main} thrown in D:\projecten\minerva\minerva\lib
> \ZendGdata-1.0.2\library\Zend\Gdata\App.php on line 583
>
> this is my code in php
>
> function deleteEventById($id){
>
>     $client = getClient();
>     $gdataCal = new Zend_Gdata_Calendar($client);
>
>         $events = $_SESSION['eventFeedArraySession'];
>
>         for ($index = 0; $index < sizeof($events); $index++) {
>                 $thisEvent = $events[$index];
>                 if ($index == $id){
>                    // Retrieve the edit URL for an event. When using this 
> method,
> this URL
>                    // should already be available somewhere locally, such as 
> in a
> database.
>                    //echo 'href: '.$thisEvent;
>                    $eventEditUrl = $thisEvent;
>
>                   // Once the edit URL is available, it can be used to
> issue the delete request.
>                   // $gdataCal is an instance of Zend_Gdata_Calendar,
> which inherits from Zend_Gdata_App.
>                   $gdataCal->delete($eventEditUrl);
>                   break;
>                 }
>
>         }
>
> }
>
> can you help me ?
> i tried almost everything i did find on the internet..!!
>
> with kind regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to