2011-05-08 193 views

回答

1

下載api,查看api。 http://code.google.com/apis/calendar/data/2.0/developers_guide_dotnet.html

注意創建活動 從部分:http://code.google.com/apis/calendar/data/2.0/developers_guide_dotnet.html#CreatingSingle

  1. 身份驗證服務

  2. 創建事件

 
EventEntry entry = new EventEntry(); 

// Set the title and content of the entry. 
entry.Title.Text = "Tennis with Beth"; 
entry.Content.Content = "Meet for a quick lesson."; 

// Set a location for the event. 
Where eventLocation = new Where(); 
eventLocation.ValueString = "South Tennis Courts"; 
entry.Locations.Add(eventLocation); 

When eventTime = new When(DateTime.Now, DateTime.Now.AddHours(2)); 
entry.Times.Add(eventTime); 

Uri postUri = new Uri("https://www.google.com/calendar/feeds/default/private/full"); 

// Send the request and receive the response: 
AtomEntry insertedEntry = service.Insert(postUri, entry); 
+0

什麼雅虎? – Alexandre 2011-05-08 20:07:50

+0

javascript:http://developer.mail.yahoo.com/om/docs/OpenapiPublic/Calendar.html jQuery:http://keith-wood.name/icalendar.html等等 – 2011-05-09 04:33:47