3 messages in com.googlegroups.google-calendar-help-dataapiRe: add event to calendar with simple...
FromSent OnAttachments
sfpeter28 Jun 2007 12:19 
Trevor Johns28 Jun 2007 12:43 
sfpeter28 Jun 2007 12:52 
Subject:Re: add event to calendar with simple GET request and no authentication
From:Trevor Johns (tre@tjohns.net)
Date:06/28/2007 12:43:23 PM
List:com.googlegroups.google-calendar-help-dataapi

On Jun 28, 12:20 pm, sfpeter <phu@sbcglobal.net> wrote:

is there a way to send an event to a user's google calendar with a simple GET request? Upcoming.org does this (or used to do this) with a url like this:

https://www.google.com/accounts/ServiceLogin?service=cl&passive=true&...

(you can see this by clicking on the 'send to calendar' link when logged in and when viewing an event). I don't work for upcoming.org, but want to do something similar.

However, this link currently displays a BAD REQUEST error page. Has this feature been changed or discontinued?

Is this HTTP GET API currently supported by Google, and if so, where could I find the specifications for how to construct a 'add to calendar' url? I don't think I can use the xml api with POST since our webapp can't authenticate the user. (I assume the GET request would handle authentication through a browser cookie or by passing the user through the Google login page first. )

any pointers would be much appreciated? thanks Peter

Hi Peter, Yes, this is definitely possible. The specifications you're looking for are located at these two URLs:

http://www.google.com/googlecalendar/event_publisher_guide.html http://www.google.com/googlecalendar/event_publisher_guide_detail.html

And yes, if you construct a link as described above Google Calendar will take care of authenticating the user for you, redirecting them to a login page if necessary.

I'm not sure exactly what's causing the Bad Request error in the link you posted. However, that link points to the Google Calendar login page (notice the "/accounts/ServiceLogin" part of the URL) rather than the normal event reminder creation page ("/calendar/event"), so I suspect that might have something to do with it.

Let me know if that helps!