4 messages in com.googlegroups.google-calendar-help-dataapiRe: Unable to delete calendar events ...
FromSent OnAttachments
Michał Wojtera17 Jan 2007 02:45 
Ryan Boyd (Google)18 Jan 2007 21:24 
Ryan Boyd (Google)18 Jan 2007 21:26 
Michal Wojtera24 Jan 2007 00:27 
Subject:Re: Unable to delete calendar events using Zend Gdata library
From:Ryan Boyd (Google) (api.@google.com)
Date:01/18/2007 09:24:51 PM
List:com.googlegroups.google-calendar-help-dataapi

Hello Michal,

Try doing this before you call the delete and see if it solves the problem: $client->setConfig(array('strictredirects' => true));

There was a bug with how Zend was handling the redirects when getting a HttpClient from ClientLogin authentication, which this solves. I believe it was fixed in SVN, but is not yet in the binary releases.

Let us know how that works.

Cheers,

-Ryan

On Jan 17, 2:45 am, "Michał Wojtera" <Mich@gmail.com> wrote:

Hi everyone,

I've been trying to solve this issue for several days and I have ran out of ideas, so maybe you can find out what I am doing wrong.

I tried several aproaches: 1. I get the id from a feed and use Zeng_Gdata_Calendar::delete(id), which should take the id link, get a feed from the Calendar, get its edit link and submit a 'DELETE edit link' request.

$client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd, 'cl'); $gdata = new Zend_Gdata($client); $gdataCal->delete($_GET['id']);

Not working, this is a piece of code used in the exact same way in the Zend Gdata example (no, the example doesn't work either)

2. I tried direct deleting using Zend_Http_Client

$client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd, 'cl'); $client->setUri($edit_link); $client->request('DELETE');

Not working

I was worried that my computer or server blocks the DELETE requests, so I turned it off for some time, but that didn't work either.

thanks, michal