private
void DeleteEvent()
{
EventQuery
query = new EventQuery();
CalendarService
service = new CalendarService("appName");
service.setUserCredentials("yourMail@gmail.com", "yourPassword");
service.QueryClientLoginToken();
query.Uri = new Uri("the Uri of the event you want to delete");
EventFeed
calFeed = service.Query(query) as EventFeed;
AtomEntryCollection
ee = calFeed.Entries;
EventEntry
ev = ee[0] as EventEntry;
ev.Delete();
// delete ok
}
** I want to remeber to go here http://support.google.com/mail/bin/answer.py?hl=it&answer=1173270 to get Application-specific password
My Two Cents...
My Two Cents...
Nessun commento:
Posta un commento