如何在asp.net中向Google日历和雅虎日历添加事件?
答案 0 :(得分: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
对服务进行身份验证
创建活动
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);
答案 1 :(得分:1)
以下链接也可能有助于雅虎日历:
Adding Events to Users Calendars – Part 2 – Web Calendars
答案 2 :(得分:0)
https://calendar.google.com/calendar/render?action=TEMPLATE&text=Bithday&dates=20201231T193000Z/20201231T223000Z&details=With%20clowns%20and%20stuff&location=North%20Pole
)https://calendar.yahoo.com/?v=60&st=st20201231T193000&DUR=0200&desc=With%20clowns%20and%20stuff&in_loc=North%20Pole
)