Get Conversation Counters

Show your users the engagement level of multiple Conversations.

To show your users the engagement level of multiple Conversations, you can display the number of user comments that have been posted on each article on your main screen.

The following code example shows how to retrieve and display comment counters for multiple conversations.

SpotIm.getConversationCounters(listOf(<POST_ID>), object : SpotCallback<Map<String, ConversationCounters>> {
	override fun onSuccess(response: Map<String, ConversationCounters>) {
		val counters = response[<SPECIFIC_POST_ID>]
		counters?.let {
			print(it.comments)
			print(it.replies)
		}
	}

	override fun onFailure(exception: SpotException) {
		// Do something
	}
})