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 Johns
http://tjohns.net


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