Hello Kevin,

What you are doing seems to be fine; 2 suggestions to try though:
  - Use SSL (https) instead of non-SSL (http)
  - Try sending a DELETE request instead of a POST request with the
X-HTTP-METHOD-OVERRIDE

Also, is the event still appearing on the Calendar Web UI or is that you can
retrieve it through the API? For the latter, make sure that you are not
specifying the "showdeleted" or "updated-min" query parameters with your
request. "updated-min" will display deleted events too as those events were
indeed updated.

Best,
Alain

On Wed, Jun 15, 2011 at 12:19 AM, Kevin Russell <[email protected]>wrote:

> I have been using the code below to Delete an event from Google
> Calendars and it has been working up until a week or so ago. The call
> returns Status 200 but the Event does not get removed from the
> Calendar.
>
> I have checked for a Redirect header, but all headers are:
>
> Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma:
> no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Date: Wed, 15 Jun 2011
> 00:37:59 GMT Content-Type: text/html; charset=UTF-8 X-Content-Type-
> Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1;
> mode=block Server: GSE Transfer-Encoding: chunked
>
> The EventId used is the one that was return when adding the event. Has
> there been a recent change in protocol, or is there something obvious
> that is missing frm my code?
>
> Thanks in advance.
>
> Call DeleteCalendarEvent("http://www.google.com/calendar/event?
>
> eid=dm5qNTR1anNvNDdpbzFhNmVkcWZvZ21rcG8gYTFiNG5kOXE1dHV1dGZyZmc1bWR1aXVtMmNAZw")
> Function DeleteCalendarEvent(cURL)
>    Dim xmlhttp
>    Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
>    xmlhttp.Open "POST", cURL, False
>    xmlhttp.SetRequestHeader "Content-type", "application/atom+xml"
>    xmlhttp.SetRequestHeader "X-HTTP-Method-Override", "DELETE"
>    xmlhttp.SetRequestHeader "X-If-No-Redirect", "True"
>    xmlhttp.SetRequestHeader "Authorization", "GoogleLogin auth=" &
> GetAuth
>    xmlhttp.Send ""
>    Set xmlhttp = Nothing
> End Function
>
> --
> 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://code.google.com/apis/calendar/community/forum.html
>



-- 
Alain Vongsouvanh

-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to