ZohoSalesIQ.Chat.get()

Note: This API is supported from version 8.0.0.

The ZohoSalesIQ.Chat.get() API retrieves chat details for the specified chat ID.

Parameters

  • chatId* - ID of the chat to be retrieved.
  • callback* -  The callback handles the success or failure of the retrieval.

Syntax

CopiedZohoSalesIQ.Chat.get(String chatId, ZohoSalesIQResultCallback<VisitorChat> callback)

Example

CopiedZohoSalesIQ.Chat.get("chat_id", result -> {
      if (result.isSuccess()) {
          // Handle success
      } else {
          // Handle error
      }
});
CopiedZohoSalesIQ.Chat.get("chat_id") { result ->
      if (result.isSuccess) {
          // Handle success
      } else {
          // Handle error
      }
}