On Jun 28, 12:20 pm, sfpeter <[EMAIL PROTECTED]> 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!

--
Trevor Johns
http://tjohns.net


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to