If you want to use special API methods like COQL queries or deleting records, you’ll soon find that deluge doesn’t have out of the box wrappers. Whilst you can use integration methods like zoho.crm.getRecordById for simpler API methods, quite a few of the API methods aren’t supported.

Luckily there’s a relatively easy way to get around this using invoke url.

Refer to this video for an example where we use an OAuth connection + invoke_url to do COQL queries inside Deluge script: