Account


Earned badges

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 2 years ago 34
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 2 years 3 months ago 42
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 2 years 4 months ago 49
Is it possible to have an area on a form where the signer can free form draw?
1 2 years 4 months ago 2
Is there a way to turn off signing order when creating the package in the .NET SDK?
1 2 years 4 months ago 10

Code Share

Sample Document Extract PDF

Submitted on April 22
Sample PDF file to use with the Document Extraction example guide.
  • Java
  • document
  • eSignLive
  • Java SDK
  • extraction
54 views
105 downloads
Example code to create a simple document package.
  • Java
  • Create Package
  • Java SDK
6 views
6 downloads

Document Package Settings (REST API)

Submitted on February 29
JSON payload to create a document package with configurable settings.
  • REST
  • API
  • json
  • Create Package
12 views
18 downloads
Example code to delete a document package.
  • Java
  • Java SDK
  • delete package
20 views
21 downloads
Example code to create a document package from a template.
  • Java
  • Create Package
  • Java SDK
  • template
8 views
3 downloads