I don't see a way with the modules in question to connect w/o having an ics file ?
Um, but I thought you already connected, you gave it a url, thats all you had to do to make a connection, the url is the file, it doesn't matter how the webserver stores it on the webserver, the url is what you're getting/editing/updating...
Try this next print Dumper( $cal->cal ); this should fetch the calendar from the webserver, so you can read it update program for you
#!/usr/bin/perl -- use strict; use warnings; use Data::Dumper (); Main( @ARGV ); exit( 0 ); sub Main { my $user = "test"; my $pass = "test"; my $url = "http://baikal.local/cal.php/principals/test/testshift" +; my $cal = Cal::DAV->new( user => $user, pass => $pass, url => $url, auto_commit => 0, ## don't ->save any changes, we're testing h +ere ); dd( $cal->errors ); dd( $cal->cal ); dd( $cal ); } sub dd { use Data::Dumper; print Data::Dumper->new([@_])->Sortkeys(1) ->Indent(1)->Useqq(1)->Dump . "\n"; }
Then to add entries call add_entries ... to figure out what you need add print Dumper( make_entry() ); to Cal-DAV-0.6/t/01basics.t and examine the output (show me)
Also try dave , CalDav is just WebDav which is just HTTP get :)
dave -tmpdir ./i-baikal-tmp -debug 3 -u test -p test "http://baikal.local/cal.php/principals/test/" ... dave> get testshift dave> quit
This should download the testshift database and save it in -tmpdir (or cwd)
In reply to Re^3: Using Perl to add entries in iCal Calendar (cpan secrets)
by Anonymous Monk
in thread Using Perl to add entries in iCal Calendar
by hoschi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |