We are new to esignlive, and developing with JAVA. After going through few guidances, I found when creating a package, some code using
PackageId packageId = eslClient.createPackageOneStep(documentPackage);
and some code using
PackageId packageId = eslClient.createPackage(documentPackage);
My question here is, what’s the difference between them? Why you have two methods with same function?
Thanks for posting! And currently, we suggest to use createPackageOneStep() method to create packages.
The differences between them two is:
In createPackage function, SDK will use separate REST calls to create package first and then upload document and its metadata one by one.
While in createPackageOneStep function, SDK will create package with all documents in one shoot.
We recommend to use createPackageOneStep because it reduces the number of API calls especially when you have multiple documents to upload.