Trevor,
Please accept my apology.

The delete process works fine with both methods your code and mine.

The problem with the creation of ('Test') event was entirely my fault;
I had some old code at the bottom of my test environment source
program, which produced the dummy events:

The following is the code needed to remove:
/*
$service = new Zend_Gdata_Calendar($client);
$event= $service->newEventEntry();
$event->title = $service->newTitle("Test");
$event->visibility = $service->newVisibility('http://
schemas.google.com/g/2005#event.private');
$newEvent = $service->insertEvent($event);
*/

Cheers, :)
BigAL

On Jun 26, 8:22 am, BigAL <[EMAIL PROTECTED]> wrote:
> Greetings Trevor,
>
> Thanks for responding to my problem.
>
> I changed the code according to your fix on the deleteEntryByUrl, the
> event in question were deleted but the same thing has occurred, Google
> Calendar automatically created a (Test) event record on my ('Default')
> user calendar with event Date exactly the Date and Time of the Delete
> transaction, {(I noticed a display of a lock icon after the word
> (Test) showing on the event calendar}. Weird !!!
>
> I do not know what to think anymore. {:(
>
> BigAL
>
> On Jun 25, 8:41 pm, Trevor Johns <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jun 25, 1:04 pm, BigAL <[EMAIL PROTECTED]> wrote:
>
> > > [...snip...]
> > > The above code will delete the Events but will also create
> > > automatically a (Test) event by Google Calendar at the 'Default' user,
> > > regardless if events where there to delete or not there to delete
> > > (Test) event is created with Start Date and Time of the Delete
> > > transaction. Why?
>
> > > Ryan, what do you think is happening is it a bug or what...
>
> > > Thanks,
>
> > HI BigAL,
> > I tried to reproduce your problem on my end but I wasn't successful.
> > However, I did notice an error in your code that might be causing
> > problems.
>
> > Specifically, this line:
> >    deleteEntryByUrl($client, $event->id->text);
>
> > Should be changed to this:
> >    deleteEntryByUrl($client, $event->getLink('edit')->href);
>
> > The difference here is that the edit link (which is what's returned by
> > "getLink('edit')") also has a version number appended to the end. If
> > you try to perform a delete operation without that version number you
> > should get a HTTP 400/Bad Request error back from the server. I'm
> > actually a little curious how the code you provided was able to delete
> > events as is. :)
>
> > In any case, try making that change and see if things don't improve.
> > Afterwords, reply to this post and let me know how things went. If
> > you're still experiencing the problem I'll take another look.
>
> > --
> > Trevor Johnshttp://tjohns.net- Hide quoted text -
>
> - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
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