# How to add an event directly to a web calendar

**URL:** <https://www.ruby-forum.com/t/how-to-add-an-event-directly-to-a-web-calendar/105250>\
**Category:** Rails\
**Created:** [May 28, 2007, 2:50am UTC](https://www.ruby-forum.com/t/how-to-add-an-event-directly-to-a-web-calendar/105250 "2007-05-28T02:50:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [May 28, 2007, 2:50am UTC](https://www.ruby-forum.com/t/how-to-add-an-event-directly-to-a-web-calendar/105250/1 "2007-05-28T02:50:39Z")

</div>

I don’t really have a good idea conceptually of how to add an event a  
user selected to a web calendar such as Google C. without first  
generate a .ics (iCal) file and then import it manually to the calendar  
application. I would like to save the user this step but have not found  
concrete information on how to do so. Does this involve WWW::Mechanize,  
Net::Http, and XML data? I would appreciate an outline of steps  
involved to achieve this.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [May 28, 2007, 10:35am UTC](https://www.ruby-forum.com/t/how-to-add-an-event-directly-to-a-web-calendar/105250/2 "2007-05-28T10:35:45Z")

</div>

Hi Kevin,

Google does have a set of APIs for accessing their products. I’m not  
sure how these would work together with Rails, but probably fine.

Check out: [http://code.google.com/](http://code.google.com/)

Josh

On May 27, 5:50 pm, Kevin L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [May 28, 2007, 11:11am UTC](https://www.ruby-forum.com/t/how-to-add-an-event-directly-to-a-web-calendar/105250/3 "2007-05-28T11:11:49Z")

</div>

I’m in the process of doing something like that myself.  
Like Josh said, they don’t have a Rails API/module, but they give  
specs about the protocol used.  
[http://code.google.com/apis/calendar/developers\_guide\_protocol.html](http://code.google.com/apis/calendar/developers_guide_protocol.html)  
basically, it’s XML over HTTP. I think we can do something with that.  
I’m still figuring it out myself.

Elise

---

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [May 28, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/how-to-add-an-event-directly-to-a-web-calendar/105250/4 "2007-05-28T14:38:17Z")

</div>

Kevin L. wrote:

> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Kevin,

checkout this site: \<[http://benjamin.francisoud.googlepages.com/](http://benjamin.francisoud.googlepages.com/)  
googlecalendar\>.

Kind regards,  
Robert.
