Account


Earned badges

Achievement: Latest Unlocked

Topic Started

This user has not created any forum posts.

Replies Created

Reply to: Create Package with options

0 votes
Hey Eugene, You can definitely have a look at this blog for a step-by-step tutorial on how to create and send a package in the REST API. It includes the JSON payload format in order to create and send a package. Also, the setting part of the payload would look something like this:
"settings":{"ceremony":
{"inPerson":false,"declineButton":true,"disableInPersonAffidavit":false,"documentToolbarOptions":null,"handOver":null,
"hideCaptureText":false,"layout":{"brandingBar":null,"footer":null,"header":{"globalActions":{"confirm":true,"download":true,"saveAsLayout":true},"globalNavigation":true,"sessionBar":true,
"breadcrumbs":true,"feedback":true,"titleBar":{"progressBar":true,"title":true}},"navigator":true,
"iframe":false},"events":{"complete":{"redirect":null,"dialog":true}},"style":null,"hideWatermark":false,"maxAuthFailsAllowed":3,
"optOutButton":true,"optOutReasons":["Reason 1","Reason 2","No Reason"]}}

Reply to: Acquiring the Authentication Token

0 votes
When making POST requests using WebClient, you should try to do it this way:
using (var client = new WebClient())
            {
            byte[] response =
       client.UploadValues("https://sandbox.esignlive.com/api/authenticationTokens", new NameValueCollection()
       {
           { "Content-Type", "application/json" },
           { "Accept", "application/json" },
           { "Authorization", "Basic " + apiKey}
       });
            string result = System.Text.Encoding.UTF8.GetString(response);
            Debug.WriteLine("Result: " + result);
            }
Hope it helps!

Reply to: Querying for Packages Recently Completed, Expired, Etc.

0 votes
Here is a sample code on how to retrieve package statuses in a give date range:
public class StatusPackage {
	
	static String API_KEY = "your_api_key";
	static String url = "https://sandbox.esignlive.com/api";
	static EslClient eslClient = new EslClient( API_KEY, url );
	
	public static void main(String[] args) {
		
		Calendar cal = Calendar.getInstance();
		cal.add(Calendar.DATE, -10);
		
		final Date START_DATE = cal.getTime();
	    final Date END_DATE = new DateTime().toDate();
	    int record = 1;
	    int j = 1;
	
	    Page completedPackages;
	    
        completedPackages = getPackagesByPackageStatus(PackageStatus.COMPLETED, START_DATE, END_DATE, record);    
        
        while (record  index = completedPackages.iterator();
        	//Number of completed packages in current page. I set mine to display 10 packages at a time a the bottom (e.g. new PageRequest(i, 10))
        	System.out.println("COMPLETED Packages in page " + j);
        	while (index.hasNext()){
        		DocumentPackage myPackage = index.next();
        		//Do what you want here with the current package (e.g. get packageId etc...)
        		System.out.println(myPackage.getId());
        		record++;
        	}
        	 //make another call from new page start point
        	j++;
            completedPackages = getPackagesByPackageStatus(PackageStatus.COMPLETED, START_DATE, END_DATE, record);
        }
	}
	
	private static Page getPackagesByPackageStatus(PackageStatus packageStatus, Date startDate, Date endDate, int i) {
		
		Page resultPage = eslClient.getPackageService().getUpdatedPackagesWithinDateRange(packageStatus, new PageRequest(i, 5), startDate, endDate);
        return resultPage;
    }
}
You can do the same for DRAFT, EXPIRED, SENT, DECLINED, and ARCHIVED packages. Let me know if it works for you :)

Subscriptions

Topics Replies Freshness Views Users
Hi, I am unable to create a package with the JAVA sdk for the attached document. I am getting an eslServerException with a technical message ' error.eslx.inputValidation.documentPreverifyError'.
21 5 years 5 months ago 228
Profile picture for user Duo_Liang
Profile picture for user harishaidary
Hello, Is there a way to find the document in the package on which we received signer_complete or package_complete event? Thanks, Sushma
4 5 years 9 months ago 143
Profile picture for user Duo_Liang
Profile picture for user harishaidary
We receive the following error message if the package is signed by the one individual and not the other when we do a check status call. Could not get signing status.
5 5 years 10 months ago 172
Profile picture for user harishaidary
Is it possible to have an area on a form where the signer can free form draw?
1 5 years 10 months ago 16
Profile picture for user harishaidary
Is there a way to turn off signing order when creating the package in the .NET SDK?
1 5 years 10 months ago 82
Profile picture for user harishaidary

Code Share

Document Extraction (Java SDK)

Submitted on
Sample PDF file to use with the Document Extraction example guide.
  • Java
  • document
  • eSignLive
  • Java SDK
  • extraction
180 views
144 downloads
Example code to create a simple document package.
  • Java
  • Create Package
  • Java SDK
27 views
8 downloads

Document Package Settings (REST API)

Submitted on
JSON payload to create a document package with configurable settings.
  • REST
  • API
  • json
  • Create Package
72 views
31 downloads

Delete Package Example (Java SDK)

Submitted on
Example code to delete a document package.
  • Java
  • Java SDK
  • delete package
57 views
23 downloads
Example code to create a document package from a template.
  • Java
  • Create Package
  • Java SDK
  • template
92 views
11 downloads

Subscriptions Release Notes

This user is not subscribed to any release notes.