Description
This function returns the connection information to set up the CalDAV and CardDAV clients.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
user |
string |
The cPanel account. If you do not include this parameter, the function defaults to the current authenticated user. |
|
example |
Returns
Return |
Type |
Description |
Possible values |
Example |
user |
string |
The specified cPanel user or email account user to whom the returned connection information pertains. If you do not specify a uservalue, this function returns the authenticated cPanel user. |
|
example2@example.com |
ssl |
hash |
A hash that contains the SSL connections. |
This hash includes theis_self_signed, port,server, and full_serverreturns and the contactsand calendars arrays. |
|
is_self_signed |
Boolean |
Whether the server uses a self-signed certificate. The function returns this value in the ssl hash. |
|
1 |
port |
integer |
The port number that the system uses for SSL connection. The function returns this value in the ssl hash. |
A positive integer. |
2080 |
server |
string |
The short server connection string. The function returns this value in the ssl hash. Note: This value is useful for clients that support Autodiscovery. |
A domain name and port that uses the HTTP protocol. |
https://server.example.com:2080 |
full_server |
string |
The absolute URL path to the user's CalDAV and CardDAV connection. The function returns this value in the ssl hash. Note: This information is useful for clients that do not support Autodiscovery. |
A domain name and port with the absolute path that uses the HTTP protocol. |
|
contacts |
array |
The list of address books for the user. The function returns this array in the ssl hash. |
This array contains the name,description, path, and urlreturns. |
|
name |
string |
The name of the address book. The function returns this value in the contacts array. |
A valid string. |
Custom 1 |
description |
string |
The description of the address book. The function returns this value in the contacts array. |
A valid string. |
Custom address book 1. |
path |
string |
The relative URL to the address book. The function returns this value in the contacts array. |
A valid string. |
|
url |
string |
The absolute URL to the address book. This function returns this value in the contacts array. |
A valid URL. |
|
calendars |
array |
The list of address books for the user. The function returns this array in the ssl hash. |
This array contains the name,description, path, and urlreturns. |
|
name |
string |
The name of the calendar. The function returns this value in the calendarsarray. |
A valid string. |
Custom 1 |
description |
string |
The description of the calendar. The function returns this value in the calendarsarray. |
A valid string. |
Custom address book 1. |
path |
string |
The relative URL path to the calendar. The function returns this value in the calendarsarray. |
A valid string. |
|
url |
string |
The absolute URL to the calendar. The function returns this value in the calendarsarray. |
A valid URL. |
|
no_ssl |
hash |
The configuration for non-SSL connections. The function returns this hash in the ssl hash. |
This hash includes the port,server, and full_serverreturns and the contactsand calendars arrays. |
|
port |
integer |
The port number that the system uses for non-SSL connections. The function returns this value in the no_ssl hash. |
A positive integer. |
2079 |
server |
string |
The short server connection string. The function returns this value in the no_ssl hash.
|
A domain name and port that uses the HTTP protocol. |
http://example.com:2079 |
full_server |
string |
The absolute URL path to the user's CalDAV and CardDAV connection information. The function returns this value in the no_ssl hash. Note: This information is useful for clients that do not support Autodiscovery. |
A domain name and port with the absolute path that uses the HTTP protocol. |
|
contacts |
array |
The list of address books for the user. The function returns this array in the no_ssl hash. |
This array contains the name,description, path, and urlreturns. |
|
name |
string |
The name of the address book. The function returns this value in the contacts array. |
A valid string. |
Custom 1 |
description |
string |
The description of the address book. The function returns this value in the contacts array. |
A valid string. |
Custom address book 1. |
path |
string |
The relative URL to the address book. The function returns this value in the contacts array. |
A valid string. |
|
url |
string |
The absolute URL to the address book. The function returns this value in the contacts array. |
A valid URL. |
|
calendars |
array |
The list of address books for the user. The function returns this array in the no_ssl hash. |
This array contains the name,description, path, and urlreturns. |
|
name |
string |
The name of the calendar. The function returns this value in the calendarsarray. |
A valid string. |
Custom 1 |
description |
string |
The description of the calendar. The function returns this value in the calendarsarray. |
A valid string. |
Custom address book 1. |
path |
string |
The relative URL path to the calendar. The function returns this value in the calendarsarray. |
A valid string. |
|
url |
string |
The absolute URL to the calendar. The function returns this value in the calendarsarray. |
A valid URL. |
|