Calling APIs in NodeJS function - Zoho CRM
Does anyone have experience calling APIs from within a NodeJS function in the Zoho CRM?
This is a CRM function using NodeJS—not code running outside the CRM using the SDK. There is a lot of documentation on the SDK but not on how to code within the CRM in NodeJS.
I’m trying to hit zoho workdrive API like so
var wdConnector = context.getConnection("work_drive");
connRes = await wdConnector.makeRequestSync({
url: 'https://www.zohoapis.com/workdrive/api/v1/upload',
method: "POST",
files: data,
headers: data.getHeaders()
}, JSON.stringify(data));and I keep getting error
{"errors":[{"id":"F000","title":"LESS_THAN_MIN_OCCURANCE"}]}