.getArticlesWithCategoryID()
Note: This API was deprecated in version 4.0.0. Use knowledgeBase.getResources() instead.
This API allows you to fetch the list of published articles from the specific category in your SalesIQ knowledge base. The ID of the category needs to be passed as a parameter to the API. The API returns a list of instances of the SIQArticle class which contains information for each article.
Parameters:
Name | Datatype | Description |
categoryID | String | ID of the category for which articles are to be fetched. |
SIQArticle class contains the following properties:
Property | Datatype | Description |
id | String | ID of the article |
articleName | String | Name of the article |
categoryID | String | ID of the article category |
categoryName | String | Name of the article category |
viewCount | int | Number of times the article was viewed |
likeCount | int | Number of times the article was liked |
dislikeCount | int | Number of times the article was disliked |
createdTime | DateTime | Time at which the article was created |
Error Codes:
Code | Message |
605 | mobilisten disabled |
608 | invalid category id |
Usage
CopiedZohoSalesIQ.getArticlesWithCategoryID(categoryID)
.then((articleList) {
}).catchError((error) {
});