Writing events to google calendar

Writing events to google calendar

  
Is there an easy way to write calender items to google calender?  I saw there was 1 forge item however its about a year old and it looks like one of the support items says it doesn't work under version 9.  What we want to do is when someone schedules or deletes a scheduled time from our OutSystems application (completely local to OutSystems) this event is reflected in our users google calendar.  So google calender is view only for these items.
Solution
Hi Jason,

Did you check the Google Calendar API?
Solution
Killian,
No I had not looked at it directly and this is not what I would call my strong point.  Do you have any experience in doing what I specified above?
Well, if you mean integrating 3rd party APIs, yes. However, if you've never done it before, I suggest you ask someone who has, as it doesn't seem too easy :).
I agree that it doesn't seem too easy.  Do you know anyone who might want to help set this up on a contract?
Also one other question: we have had some users who don't feel comfortable putting their gmail password into our system.  Is there a way to insert/delete items from a persons google calender without their password?  I would see that as being a big security hole if it is available but wanted to ask.
Yes, there is, but the user needs to explicitely allow it, so no big security problem there. It's a fairly complex process though, you needing to register your app with Google, etc. (see here) for more details. An alternative could be to just send the appointment to their GMail account using special mark-up to allow easy integration with the calendar.
looking at this one - maybe you don't have to go through all of the hoops of registering if you have their password? https://developers.google.com/google-apps/calendar/quickstart/dotnet
whoops meant this one https://developers.google.com/gdata/client-cs?hl=en
Well, "having" their password is of course the problem: the user would have to enter it every time (at least once per session) if you want to make an appointment. The alternative of storing it somewhere as plain text is of course too evil to even consider...
Surprisingly I have almost gotten this working.  I am at the point where the user is forwarded to google to log in and/or authorize for my application to access their calender and then I get that token back.  Now the last part is how to set up the post for inserting and deleting an event to their calender once you have their token.  Do you know how to do that?
Hi Jason,

Congrats with coming this far :). I don't know how to do that, but I'm sure that it won't be that difficult, given the documentation.
You would think so - but all of the examples for inserting/deleting in the google documentation (that I have been able to find) have just about every language except for doing it via REST.
I think this is what you're looking for: https://developers.google.com/google-apps/calendar/v3/reference/.
Ok - this may be part of my problem.  If I understand it correctly, the link you put in above is actually to insert a new calandar - not an event onto an existing calendar.  If I just want to put an event onto their primary calendar wouldn't I use https://developers.google.com/google-apps/calendar/v3/reference/events/insert and for the post I would use
https://www.googleapis.com/calendar/v3/calendars/calendarId/events where on the calendar ID I would just put in primary instead of calandarId?
In the side bar on the left, you can click "Events", then "Overview", which will get you here. If you click the "About events" link in the introduction, you end up here. A quick glance would lead me to believe there's enough information to create events, but I'm rather busy currently so I may be wrong and you need to click around a bit more.
Yep! I am really close to getting this working.  Thank you for the help!!!
You're most welcome, although I feel I couldn't contribute much more than point you at some potentially useful links :). Let us know when you get it to work.