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:

NameDescription
categoryIDID of the category from which the articles have to be fetched

Error Codes:

CodeMessage
600no network connection
605mobilisten disabled
608invalid category id
609salesIQ 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
   }
});