manjumh

Remote URL for Document Attachment

0 votes
Hello, We are in exploring REST API for creating a package with a signing document. Thanks to the good developer resources on this site, we could accomplish this part but the challenge we have is the document resides on a Cloud platform and is accessible over a URL. We had to manually copy the file locally and trigger REST API call to eSignLive. Is there an option available on eSignLive that can pull the document from a remote URL with a remoteURL parameter embedded within JSON request of package + document creation?

Reply to: Remote URL for Document Attachment

0 votes
Hi manjumh, It's definitely possible. You'll have to download the resource (pdf) as a byte array from the URI you specify and pass that in your multipart/form-data request to upload the document. Here's an example in csharp:
var webClient = new WebClient();
byte[] pdfBytes = webClient.DownloadData("https://www.example.com/pdf/test.pdf");
Haris Haidary OneSpan Technical Consultant

Reply to: Remote URL for Document Attachment

0 votes
Thanks Haris. We are initiating the request from a 3rd party SaaS Cloud environment that limits our ability to run SDK. It allows REST API call and is limited to Javascript customization which is also locked down. Is there an option that can be done with just a REST call?

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off