Account
I am a
Developer
Product(s)
Earned badges
Achievement: Latest Unlocked
TID Sandbox
Approved Answers
Code Shares
Replies
Code Share Comments
Preferences
Profile Completion
Topic Started
This user has not created any forum posts.
Replies Created
Reply to: Create Package with options
Thursday, December 3, 2015 at 03:23amHey 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:
Reply to: Acquiring the Authentication Token
Wednesday, December 9, 2015 at 04:33amWhen 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.
Thursday, December 10, 2015 at 06:03amHere 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 :)Reply to: Querying for Packages Recently Completed, Expired, Etc.
Thursday, December 10, 2015 at 07:42amIf I understand correctly, you want to know what packages were in COMPLETED, DRAFT, SENT, etc. for a specific day regardless of when the updates happened?
Reply to: Querying for Packages Recently Completed, Expired, Etc.
Monday, December 14, 2015 at 08:00amUnfortunately, our api doesn't support this at the moment. I do apologize for the inconvenience.
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 | |
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 | |
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 | |
Is it possible to have an area on a form where the signer can free form draw?
|
1 | 5 years 10 months ago | 16 | |
Is there a way to turn off signing order when creating the package in the .NET SDK?
|
1 | 5 years 10 months ago | 82 |
Subscriptions Release Notes
This user is not subscribed to any release notes.