Sunday 15 February 2015

icalendar - Reading a webcal URL in ruby on rails -


I am trying to parse a webcal link

  webcal: // Www.facebook.com/company / BPPP in Rails app UID = 13301632 and AG = Adamgagaeg   

so I can customize event entries. I have seen in both but not a calendar feed (webcal: //) showing no support for reading.

Are there any railway libraries that help in parsing webcail addresses? If not, how should I go about making my paras?

Webcal is just an unauthorized URI scheme Access to Icalendar documents You can get HTL using Calendar And can parse it using one of several Icarusin plugins:

  is required 'net / http' uri = URI ('http://www.facebook.com/ Ical / B.php? Uid = 13301632 & amp; key = asdgagaweg ') Calendar = Net :: HTTP.get (uri)   

For alternative methods of obtaining http requests: < / P>

Then your favorite plug-ins Received parse the response by using:

:

  cal = icalendar.parse (calendar). First   

:

RiCal.parse_string (calendar). First

No comments:

Post a Comment