open()

The ZohoSalesIQ.KnowledgeBase.open API helps to open a specific resource. 

Parameters

  • resourceType * - (Article) Type of the resource
  • ID * - ID of the resource
  • listener * - The callback to get the resources.

Error codes:

CodeMessage
18008Provide a valid language code
18009Provided language code is not supported
500Mobilisten SDK not initialized
600No network connection
605Mobilisten SDK is disabled

Syntax

CopiedZohoSalesIQ.KnowledgeBase.open(ZohoSalesIQ.ResourceType.Articles, "id", new OpenResourceListener() {
      @Override
      public void onSuccess() {
                
      }

      @Override
      public void onFailure(int code, @Nullable String message) {

      }
});
CopiedZohoSalesIQ.KnowledgeBase.open(ZohoSalesIQ.ResourceType.Articles, "id", object : OpenResourceListener {
      override fun onFailure(code: Int, message: String?) {
                
      }

      override fun onSuccess() {
                
      }
})