FAQ.getArticles()
Note: This API was deprecated in version 7.0.0. Use KnowledgeBase.getResource() instead.
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:
Property | Description |
id | ID of the knowledge base category |
name | Name of the knowledge base category |
isRated | Flag to check if the article has been rated by the visitor |
viewCount | Number of views for the article |
likeCount | Number of likes the article has |
dislikeCount | Number of disliked the article has |
categoryName | Name of the category to which the article belongs |
categoryID | ID of the category to which the article belongs |
createdTime | The time at which the article was initially created |
lastModifiedTime | The time at which the article was last modified. |
Error Handling:
Code | Description |
500 | Mobilisten not initialized |
605 | Mobilisten disabled |
608 | Invalid category ID |
Usage:
CopiedZohoSalesIQ.FAQ.getArticles(categoryID: "001") { (error, articles) in
//your code goes here
}