CalDAV::Simple::Task - a data class representing one task (VTODO) in a CalCAV calendar
use CalDAV::Simple::Task; my $task = CalDAV::Simple::Task->new(vcal_string => $string); printf "task '%s' is due '%s'\n", $task->summary, $task->due;
This module is used to hold details of a single task from a CalDAV calendar. It is alpha quality code. I don't really know much about CalDAV, but I've been hacking around until I could get what I wanted working.
The short description / title of the task.
The CalDAV STATUS string for the task. I haven't looked into the different values this can take.
The CalDAV UID for the task.
The HTTP etag for the task.
The relative URL for the task.
A DateTime instance holding the due date for the task.
When the task was created. This will currently be returned as an ISO 8601 date+time string, I think. In the future I'll make this return a DateTime instance as well.
This is the string returned from the CalDAV server for a single task. It's basically the d:response element:
d:response
<d:response> ... <cal:calendar-data> BEGIN:VCALENDAR ... END:VCALENDAR </cal:calendar-data> ... </d:response>
Hopefully you won't have to deal with this.
Takes a task (instance of CalDAV::Simple::Task) and deletes it from the calendar.
CalDAV::Simple - the main module of this distribution, the tasks() method of which returns instances of CalDAV::Simple::Task.
tasks()
CalDAV::Simple::Task
https://github.com/neilbowers/CalDAV-Simple
Neil Bowers <neilb@cpan.org>
This software is copyright (c) 2015 by Neil Bowers <neilb@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install CalDAV::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CalDAV::Simple
CPAN shell
perl -MCPAN -e shell install CalDAV::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.