google calendar api asp.net c# delete event -
i have function
private static void deleteevent(calendarservice service, string ptitle,datetime pdate) { feedquery query = new feedquery(); query.uri = new uri("http://www.google.com/calendar/feeds/default/private/full"); atomfeed calfeed = service.query(query); foreach (atomentry entry in calfeed.entries) { if (ptitle.equals(entry.title.text)) { entry.delete(); break; } } }
how can delete event title , date ?
these might help:
http://code.google.com/apis/calendar/data/2.0/developers_guide_dotnet.html#deletingevents
http://code.google.com/apis/calendar/data/2.0/developers_guide_dotnet.html#retrievingevents
i'd guess following might work:
eventquery query = new eventquery("https://www.google.com/calendar/feeds/default/private/full"); query.startdate = ...; query.enddate = ...; eventfeed feed = service.query(query); foreach (var entry in feed.entries) { if (ptitle.equals(entry.title.text)) { entry.delete(); break; } }
Comments
Post a Comment