Ok, I had a look at the XML that I create for the POST & there is nothing that looks like what you are suggesting, but I am not sure how you 'Fetch the calendar'? I believe it is writable because I can add events to it quite happily. Also when I create the event I have had a look at the returning code & it has Set-Cookie: CAL=DQAAAHIAAADCQ0yiZaFq5JdgfyBEX0txGOkcYkLyO173o in the string. Is that the edit url that you are referring to? Okay, if it is, how do I send a POST with DELETE over-ride to that url? I did try DELETE directly but that upset the system & it returned an error.
Sorry to keep asking dumb questions! regards Mick On Mar 19, 10:16 pm, Ray Baxter <[EMAIL PROTECTED]> wrote: > Mick, > > If you can create an event on a Google calendar, you have everything > that you need to delete that event from the calendar. > > There are 4 http verbs: GET, POST, PUT, and DELETE. A GET is what your > web browser does when it fetches a page. A POST is what it does when you > click on a Submit button to submit a form that you have filled out, > typically creating a new object. A PUT is an update to an existing > object; you send updated content to an existing event by sending updated > xml in a PUT to the event's edit url. A DELETE is similar, but no > content is required. Just send a DELETE to the event's edit url. > > Web browsers don't commonly support the PUT and DELETE verbs and some > libraries do not either. Also PUT and DELETE requests can be blocked on > some networks. There is a trick of simulating a PUT or DELETE by setting > a header in a POST. I am not familiar with VB, but according to the > comments on the Poor House page you referenced you can set the > X-HTTP-Method-Override: DELETE header in VB in order to send a DELETE. > > So, short story, > > 1) Fetch your calendar. This must be a writable calendar, or you won't > see the edit urls that you need. > > 2) Look at the xml for that calendar and find the event that you want to > delete. > > 3) Find that event's edit url. It is the link with the rel='edit' > attribute . Google's example is: > <link rel='edit' type='application/atom+xml' > > href='http://www.google.com/calendar/[EMAIL > PROTECTED]/private/full/entryID/version'/>, > but your event will have a different e-mail address, entryID and version. > > 4) Either directly send a DELETE request to that edit url, or simulating > a DELETE request by adding the X-HTTP-Method-Override header in a POST. > > Hope that helps, > > Ray > > > > Mick wrote: > > I'm afraid not! I did read that as I mentioned but it didn't make a > > lot of sense I'm afraid. I don't understand which bit actually does > > the deleting & how it is called or used & what the long numbers mean > > or how I would use them in my case. Is there anywhere that explains it > > in a real simple way, or some actual code that does it? I got the > > 'Add' code > > fromhttp://thepoorhouse.org.uk/using_google_calendar_api_via_visual_basic_6 > > & it intimates that deleting can be done but there is no actual > > explanation. > > > regards > > > Micki > > > On Mar 17, 7:52 pm, "Austin (Google)" <[EMAIL PROTECTED]> wrote: > > >> Hi, > > >> Before you can delete an event you need to retrieve it to obtain it's edit > >> URL and to delete it you simply just send a DELETE HTTP request to the edit > >> URL. > > >> For more details on how DELETE is performed on event, please go to - > > >>http://code.google.com/apis/calendar/developers_guide_protocol.html#D... > > >> And this section here gives details on how to perform batch request as well > >> - > > >>http://code.google.com/apis/calendar/developers_guide_protocol.html#b... > > >> Hope that helps, > >> Austin > > >> On Sun, Mar 16, 2008 at 11:14 AM, Mick <[EMAIL PROTECTED]> wrote: > > >>> Hi Guys, I'm new to this XML stuff but have managed to find some XML > >>> code to enable me to add an event to a calendar, but I can't seem to > >>> Delete it (or understand the batch delete that Google offers!). I am > >>> running the XML from a Microsoft Access database via VB6 to sync up a > >>> VB calendar with a world calendar. Can anyone explain (or provide XML > >>> or VB6 code) to do this - keep it simple though please.- Hide quoted text > >>> - > > >> - Show quoted text -- 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 -~----------~----~----~----~------~----~------~--~---
