FAQ.getCategories()

This API can be used to fetch the list of article categories. This API returns an array of SalesIQArticleCategory objects.

SalesIQArticleCategory class contains the following properties:

PropertyDescription
countNumber of categories to be fetched
categoryIDID of the category that has to be fetched
categoryNameName of the category that has to be fetched

Error Codes:

CodeMessage
600no network connection
605mobilisten disabled
609salesIQ api exception

 

Syntax:

CopiedZohoSalesIQ.FAQ.getCategories(salesIQArticleCategory);

Example:

CopiedZohoLiveChat.FAQ.getCategories(new FAQCategoryListener() 
{
   @Override
   public void onSuccess(ArrayList<SalesIQArticleCategory> categories) 
   {
     //your code
   }
   @Override
   public void onFailure(int code, String message)
  {
     //your code
   }
});