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:
Property | Description |
count | Number of categories to be fetched |
categoryID | ID of the category that has to be fetched |
categoryName | Name of the category that has to be fetched |
Error Codes:
Code | Message |
600 | no network connection |
605 | mobilisten disabled |
609 | salesIQ 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
}
});