开发者

Is it possible develop an asp.Net application that creates events on Google Calender? [closed]

开发者 https://www.devze.com 2023-03-16 13:31 出处:网络
Closed. This question is se开发者_如何学Ceking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answ
Closed. This question is se开发者_如何学Ceking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Improve this question

I am working on a personnel asp.Net project that has some calender based events. What I am thinking is if I can sync those events to a user's google calender.

Is it possible to create an application that create events on Google Calender? Is there a kind of API for this and if yes, would I have some limitations?


There is an API for it. check This link I think what you're looking for is the following:

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);

If you have the calendar you are updating set as public, or you invite the other people, then they can subscribe to your calendar and any updates you put will show up on their calendars

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号