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