WWW::WCAP - Access to a WCAP-enabled calendar server


WWW-WCAP documentation  | view source Contained in the WWW-WCAP distribution.

Index


NAME

Top

WWW::WCAP - Access to a WCAP-enabled calendar server

SYNOPSIS

Top

	# Should be OOP-based, not procedural...
	use WWW::WCAP qw(login do_request parse_ical logout);
	my $session_id = login($username,$password);
	my $ret = do_request($session_id, $wcap_command, @wcap_parameters);
	my $html = parse_ical($ret->content);
	my $ret = logout($session_id);

DESCRIPTION

Top

Based on documentation provided in Sun ONE Calendar Server Programmer's Manual, August 2002 (iCS 5.1.1 Programmer's Manual.pdf), see http://docs.sun.com/prod/s1.s1cals for more details.

login($username,$password)

Log in to the calendar server. Returns a session ID.

do_request($session_id, $wcap_command, @wcap_parameters)

Send a WCAP request. Returns a hashref of error status and contents.

NOTE: There is a limit to the number of characters that may be passed in for each parameter. The limit per parameter is 1000 characters. (p80 Sun ONE Calendar Server Programmer's Manual, August 2002)

parse_ical

Parse the iCal data returned (currently dumps it out as HTML).

logout($session_id)

Log in to the calendar server. Returns a session ID.

BUGS

Top

None known at this point.

SEE ALSO

Top

...

AUTHOR

Top

Nathan Bailey, <nate@cpan.org>

COPYRIGHT

Top


WWW-WCAP documentation  | view source Contained in the WWW-WCAP distribution.