Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 889 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 889 Bytes

twisted-caldav

Gem Version

Ruby client for searching, creating, editing calendar and tasks.

Tested with ubuntu based calendar server installation.

It is a modified version of another caldav client under MIT license

https://github.com/n8vision/caldav-icloud

Installation

gem install 'twisted-caldav'

Usage

require 'twisted-caldav'

u = 'user1'

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

Find events

result = cal.find_events(start: '2014-04-01', end: '2014-04-15')

Create event

result = cal.create_event(start: '2014-04-12 10:00', end: '2014-04-12 12:00', title: 'Meeting With Me', description: 'Meeting about nothing...:D')