/ruby-caldav

Ruby CalDAV client

Primary LanguageRubyMIT LicenseMIT

ruby-caldav

Ruby client for searching, creating and editing CalDAV calendars and tasks.

Installation

gem install 'ruby-caldav'

Usage

require 'ruby-caldav'

u = "user1"
uri = "http://yourserver.com:8008/calendars/users/#{u}/calendar/"
cal = CalDAV::Client.new(uri: uri, user: u, password: "password")

Find events

result = cal.find_events(start: "2019-04-01", end: "2019-04-15")

Create new event

result = cal.create_event(start: "2019-04-12 10:00",
  end: "2019-04-12 12:00",
  title: "Some Meeting",
  description: "Meeting about something")