FAQ.getCategories()

Note: This API was deprecated in version 6.0.1. Use getCategories() instead. 

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 articles in the category
categoryIDThe ID of the knowledge base category
categoryNameName of the knowledge base category

Error Codes:

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

 

Syntax:

CopiedZohoSalesIQ.FAQ.getCategories(FAQCategoryListener listener);

Example:

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