Invoking Desk API from Extension

Invoking Desk API from Extension

Hello,

Can someone please advise me with a small code snippet how to invoke the Desk API (https://desk.zoho.com/support/APIDocument.do#Introduction) from inside an extension?

I have added a connection in Sigma, and added the generated connection link in the connectors part of the plugin manifest.

Now I just need to figure out how to do a call from the extension to the API: is this with the ZOHODESK.request call?
How to generate the oauthtoken, based on the user account that is logged in to Zoho Desk? Just a small code snippet on how to invoke one of the API calls would be enough to push me in the right direction.

Many thanks!

Stijn