How can I get all threads from the correspondence in the ticket (incoming threads would be cool) in my widget?

How can I get all threads from the correspondence in the ticket (incoming threads would be cool) in my widget?

Hello, help me please =)

In my widget, when I click on a button, I need to get certain data from an external server. The format and content of this data depends on the key expressions (like order numbers) in the incoming threads that the catomers leave.
How can I get the text of these threads?

maybe there is a simple way like:

ZOHODESK.get('ticket.threads').then(function(response) {})


As I understood, something similar provide by channel integration

https://www.zoho.com/desk/extensions/guide/#channel-integration-introduction 

But this is too complicated and unnecessary for my case.