Saturday, September 9, 2017

Uploading files to Zoho CRM using Node.js


I couldn't find any docs on using Node to attach files to Zoho CRM, so through trial and error came up with the below:


Here I'm using request to provide a readStream pointing at a remote file but you could equally use fs.createReadStream('./myFile.blah') to upload a local file.