.FAQ.getArticles()

This API can be used to fetch the list of all articles or articles belongs to a specific category from your SalesIQ knowledge base. If you skip passing  categoryID  as a function parameter, the API will fetch all articles irrespective of the category grouping. This API returns an array of SIQFAQArticle objects in the completion closure.

The SIQFAQArticle class contains the following properties:

PropertyDescription
idID of the knowledge base category
nameName of the knowledge base category
isRatedFlag to check if the article has been rated by the visitor
viewCountNumber of views for the article
likeCountNumber of likes the article has
dislikeCountNumber of disliked the article has
categoryNameName of the category to which the article belongs
categoryIDID of the category to which the article belongs
createdTimeThe time at which the article was initially created
lastModifiedTimeThe time at which the article was last modified.

Error Handling:

CodeDescription
500Mobilisten not initialized
605Mobilisten disabled
608Invalid category ID

 

Usage:

CopiedZohoSalesIQ.FAQ.getArticles(categoryID: "001") { (error, articles) in
      //your code goes here
 }