Hacker News new | ask | show | jobs
by yalooze 1983 days ago
If you’re looking for an alternative approach, I built this Add To Calendar Ruby Gem[0] which generates URLs for all the common Calendar platforms. There’s also this reference repo[1] which helps explains how to build your own and lists some other libraries in various languages.

[0] https://github.com/jaredlt/add_to_calendar

[1] https://github.com/InteractionDesignFoundation/add-event-to-...

2 comments

I commented on one of your issues about all-day events; it's interesting what a hack supporting them is.
Thank you! Yeah, the ics / iCalendar part of it has a spec[0] and is reasonably easy to deal with. But Google, Yahoo and Outlook Web/Office 365 all have their own take on URL construction which can be painful!

[0] https://tools.ietf.org/html/rfc5545

This looks really useful. Any similar Libs. For Elixir or Javascript?
The second link I mention has some JavaScript implementations, although I have not used them myself.

https://github.com/InteractionDesignFoundation/add-event-to-...