FAQ.getArticles()
This API can be used to fetch a list of articles or articles belonging to a specific category from the SalesIQ knowledge base. If the categoryID is not mentioned as a function parameter, all the articles will be returned. This API returns an array of SalesIQArticle objects.
Parameters:
Name | Description |
categoryID | ID of the category from which the articles have to be fetched |
Error Codes:
Code | Message |
600 | no network connection |
605 | mobilisten disabled |
608 | invalid category id |
609 | salesIQ api exception |
Syntax:
CopiedZohoSalesIQ.FAQ.getArticles(faqListener); //lists all articles
ZohoSalesIQ.FAQ.getArticles(categoryID, faqListener); //lists all articles from the specified category
Example:
CopiedZohoSalesIQ.FAQ.getArticles(new FAQListener()
{
@Override
public void onSuccess(ArrayList<SalesIQArticle> articles)
{
//your code
}
@Override
public void onFailure(int code, String message)
{
//your code
}
});
Example:
CopiedZohoSalesIQ.FAQ.getArticles("1000", new FAQListener()
{
@Override
public void onSuccess(ArrayList<SalesIQArticle>articles)
{
//your code
}
@Override
public void onFailure(int code, String message)
{
//your code
}
});