我将如何添加Calendarapp类 [英] How Will I Add The Calendarapp Class

查看:129
本文介绍了我将如何添加Calendarapp类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我尝试使用ac#program将日历事件添加到用户的gmail日历中,我已经做了大量的研究,并添加了所有建议适合的参考。

最有用的来源是:



https://developers.google.com/apps-script/reference/calendar/calendar#createEvent%28String,Date ,日期%29

https://developers.google.com/apps-script/reference/calendar/calendar-event



In特别是,我使用这段代码为我的程序启动了一个基础:

So I am trying to add a calendar event to a user's gmail calendar using a c# program, I have done a ton of research and have added all the references that are suggested to be appropriate for this.
The most helpful sources were here:

https://developers.google.com/apps-script/reference/calendar/calendar#createEvent%28String,Date,Date%29
https://developers.google.com/apps-script/reference/calendar/calendar-event

In particular, I have used this piece of coding to start a base for my program:

// Creates an event for the moon landing and logs the ID.
 var event = CalendarApp.getDefaultCalendar().createEvent('Apollo 11 Landing',
     new Date('July 20, 1969 20:00:00 UTC'),
     new Date('July 21, 1969 21:00:00 UTC'));
 Logger.log('Event ID: ' + event.getId());





我在以下链接找到了它:https://developers.google .com / apps-script / reference / calendar / calendar-app

标题下的createEvent(title,startTime,endTime)



但是当我尝试调用CalendarApp时,它给我一个缺少的引用错误,我无法在任何地方找到此引用,我可以找到(并已添加)的唯一相关引用是

1.使用Google.GData .Calendar

2.使用Google.GData.Client

3.使用Google.GData.Extensions



但是没有运气,我甚至试着通过下载Pubudu Kasakara的应用程序如何阅读C#中的Google日历并完成他的教程(这提供了很好的背景和见解,但仍然没有使用CalendarApp) :

http://www.codeproject.com/Art icles / 64474 /如何阅读Google-Calendar-in-C



如果有人有任何建议或任何可能有帮助的事情,我将非常感激因为我没有想法,我很可能会错过一些简单的东西,因为我还是一名初级开发人员。非常感谢提前。



I found it at this link: https://developers.google.com/apps-script/reference/calendar/calendar-app
Under the title createEvent(title, startTime, endTime)

However when I try to call the CalendarApp it gives me a missing reference error, I cannot find this reference anywhere, the only relevant references that I can find (and have added) are
1. Using Google.GData.Calendar
2. Using Google.GData.Client
3. Using Google.GData.Extensions

But no luck at all, I have even tried my luck by downloading the application "How to Read the Google Calendar in C#" by Pubudu Kasakara and going through his tutorial (which gave great background and insight, but still no luck with the CalendarApp) :
http://www.codeproject.com/Articles/64474/How-to-Read-the-Google-Calendar-in-C

If anyone has any suggestions or anything that might help I would be very grateful as I am out of ideas, chances are I am missing something simple as I am still a junior developer. Thanks so much in advance.

推荐答案

这篇关于我将如何添加Calendarapp类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆