.getArticles()

Note: This API was deprecated in version 4.0.0. Use knowledgeBase.getResources() instead.

This API can be used to fetch a list of articles from your SalesIQ knowledge base. The API returns a list of instances of the SIQArticle class which contains information for each article.

Callbacks:

NameDescription
errorError is returned if an error occurs while using the API. The list of possible error codes returned by the API are listed below
articleListList of articles

SIQArticle class contains the following properties:

PropertyDatatypeDescription
idStringID of the article
articleNameStringName of the article
categoryIDStringID of the article category
categoryNameStringName of the article category
viewCountintNumber of times the article was viewed
likeCountintNumber of times the article was liked
dislikeCountintNumber of times the article was disliked
createdTimeDateTimeTime at which the article was created

Error Codes:

CodeMessage
500mobilisten not initialized
605mobilisten disabled
600no network connection
 

Usage

CopiedZohoSalesIQ.getArticles.then((articleList){
	// your code goes here
}).catchError((error){
	// your code to handle errors
});