This function returns the connection information to set up the CalDAV and CardDAV clients.
string or string A cPanel account or valid email account user. If you do not include this parameter, the function defaults to the current authenticated user. |
uapi --output=jsonpretty \ --user=username \ DAV \ get_calendar_contacts_config
{- "apiversion": 3,
- "func": "get_calendar_contacts_config",
- "module": "DAV",
- "result": {
- "data": {
- "activesync": {
- "enabled": 1,
- "port": 2091,
- "server": "example.com",
- "user": "username"
}, - "no_ssl": {
- "calendars": [
- {
- "description": "Custom calendar 1.",
- "name": "Calendar 1",
- "path": "/calendars/example/calendar:ZcG9JBH68WXxfMVUgvSrUw1",
}
], - "contacts": [
- {
- "description": "Custom address book 1.",
- "name": "Custom 1",
- "path": "/addressbooks/example/contacts:E-KKA5uQZyQJbTBKcGP3OQ6",
}
], - "port": 2079,
}, - "ssl": {
- "calendars": [
- {
- "description": "Custom calendar 2.",
- "name": "Calendar 2",
- "path": "/calendars/example/calendar:ZcG9JBH68WXxfMVUgvSrUw1",
}
], - "contacts": [
- {
- "description": "Custom address book 2.",
- "name": "Address book 2",
- "path": "/addressbooks/example/contacts:E-KKA5uQZyQJbTBKcGP3OQ6",
}
], - "is_self_signed": 1,
- "port": 2080,
}, - "user": "username"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}