Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:
C#
// 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());


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.
Posted
Updated 18-Jun-14 21:51pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900