Skip to content

Instantly share code, notes, and snippets.

@thomasfl
Created January 26, 2010 13:56
Show Gist options
  • Select an option

  • Save thomasfl/286848 to your computer and use it in GitHub Desktop.

Select an option

Save thomasfl/286848 to your computer and use it in GitHub Desktop.
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