Home > front end >  Send pdf to shared resource using Zoho Deluge
Send pdf to shared resource using Zoho Deluge

Time:12-15

I'm getting attached pdf to invoice in Zoho books. I will use GET request (using invokeUrl or postUrl functions). I'm getting result already in Postman:

https://gyazo.com/e3a74ff1e5051928ddb162c0e01dbdd8

I'm getting content of Pdf in bin format. But I'm stumbling what to do the next. I need to put this pdf now to any shared resource: Zoho Workdrive, Google disk, dropbox etc. I don't know how to do this in Deluge easier. It should be sharable resource (everyone should have access to this link and can download it).

Thank you for your advices

I'm looking for documentation of Zoho api, found a lot examples in other languages like js. Expect to find optimal (easy and fast as possible) solution in Deluge.

CodePudding user response:

downloadFile = invokeurl
[
    url :"https://books.zoho.com/api/v3/invoices/3675398000000085014/attachment"
    type :GET
    connection:"invoicescom"
];
info "downLoadFile = "   downloadFile;
uploadResponse = zoho.workdrive.uploadFile(downloadFile,"xxxxxxxxx","book1.pdf",FALSE,"workdrivecon");
info "uploadResp = "   uploadResponse;
  • Related