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:
Property | Description |
count | Number of articles in the category |
categoryID | The ID of the knowledge base category |
categoryName | Name of the knowledge base category |
Error Codes:
Code | Message |
600 | no network connection |
605 | mobilisten disabled |
609 | salesIQ 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
}
});