NAME

Net::OpenXchange::Module - Role for OpenXchange modules

VERSION

version 0.001

SYNOPSIS

Net::OpenXchange::Module is a role to be consumed by classes implementing methods for the OpenXchange API

ATTRIBUTES

conn

Required constructor argument, the Net::OpenXchange::Connection object.

columns

A string representing all attribute IDs to be used in 'columns' fields in requests.

METHODS

ox_time

my $time = $module->ox_time($dt);

Convert the given DateTime object into an OpenXchange datetime.

ox_date

my $date = $module->ox_date($dt);

Convert the given DateTime object into an OpenXchange date.

req_uri

my $uri = $module->req_uri($path, %params);

my $uri = $module->req_uri('folder', action => 'all');
# $uri is https://yourox/ajax/folder?action=all

Construct a URI by appending the given path to the root URI and adding the params as URI query parameters.

AUTHOR

Maximilian Gass <maximilian.gass@credativ.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Maximilian Gass.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.