【问题标题】:send event from asp.net to google calender in web application在 Web 应用程序中将事件从 asp.net 发送到谷歌日历
【发布时间】:2009-11-20 12:39:52
【问题描述】:

我想从 asp.net 应用程序向我的谷歌日历帐户发送事件

【问题讨论】:

    标签: c# asp.net google-api


    【解决方案1】:

    查看 Google API 日历 http://code.google.com/intl/nl-NL/apis/calendar/

    http://code.google.com/intl/nl-NL/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("http://www.google.com/calendar/feeds/default/private/full");
    
    // Send the request and receive the response:
    AtomEntry insertedEntry = service.Insert(postUri, entry);
    

    【讨论】:

      【解决方案2】:

      【讨论】:

      • 我已经完成了 api,添加了所有 google.gdata.calender dll 然后它也无法正常工作请给我发送整个代码
      • 其中有一个针对 .NET 的特定部分:code.google.com/apis/calendar/data/2.0/…
      • @priti,我从来没有玩过 google API,我不会花几个小时来学习一些我不会再使用的东西。
      • @priti 我们可以回答具体问题,但 API 文档中已经有示例代码,如果没有更深入的问题,我们将无法添加任何内容
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多