On Jul 18, 2008, at 5:54 AM, Peter wrote:
> I'm trying to figure out how to delete an event in calendar. Whenever > i create an event, i store the event-id from the response (<id>this- > one</id>) in the database. I read in the api that, to delete, i should > call the edit-url for an event but how do i get that one? Does it have > any relation with the <id>, the one i store? Because when i do a > delete-request to that one, i get a "Invalid request URI" error. What > is the edit url? If the event id is http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/private/full/f5rq2qeivf7hlj3dnt9lic6r48 then the edit-url will be something like http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/private/full/f5rq2qeivf7hlj3dnt9lic6r48/63351357325 That last bit tacked onto the end is the version of the event. Best practice would be to get that edit-url just before you deleted the event, because someone else might have made a change to that event that you would need to know about before you were to delete it. In any case the edit-url was in the xml that was returned to you when you created the events and you can also retrieve it by doing an authenticated GET on the event id or any event feed that contains it. Ray --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
