new CommunicationApi(constructorOptions)
communicationCommunications-Handling API
Name | Type | Description |
---|---|---|
constructorOptions |
CommunicationConstructorOptions |
Options for constructor |
Throws:
Methods
-
auth(originalOptions, callback)
communication -
Authenticate against Zimbra.
Name Type Description originalOptions
AuthOptions options for auth
callback
callback Callback run with optional error (see throws)
Throws:
-
getRequest(originalOptions, callback)
communication -
Get a prebuilt request with an auth token.
Name Type Description originalOptions
GetRequestOptions options for GetRequest
callback
callback run with optional Error (see throws) and Request-Object
Throws:
-
send(request, callback)
communication -
Send a request to the Zimbra server and pass a response to the callback
Name Type Description request
RequestApi The request to send
callback
callback callback run with optional error (see throws) and Response
Throws: