Created
January 26, 2010 13:56
-
-
Save thomasfl/286849 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'vortex_client' | |
| include Vortex | |
| vortex = Vortex::Connection.new("https://vortex-dav.uio.no/") | |
| vortex.cd('/brukere/thomasfl/events/') | |
| event = HtmlEvent.new(:title => "My Sample Event 1", | |
| :introduction => "Sample event introduction", | |
| :body => "<p>Hello world</p>", | |
| :startDate => "19.06.2010 17:56", | |
| :endDate => "19.06.2010 19:00", | |
| :location => "Forskningsveien 3B", | |
| :mapUrl => "http://maps.google.com/123", | |
| :tags => ["vortex","testing","ruby"], | |
| :publishedDate => Time.now ) | |
| path = vortex.publish(event) | |
| puts "published " + path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment