Добавить события в календарь Google и Yahoo календарь - PullRequest
0 голосов
/ 08 мая 2011

Как добавить событие в календарь Google и календарь Yahoo в asp.net?

Ответы [ 3 ]

1 голос
/ 08 мая 2011

скачать 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);
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...