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
Approved Answer
Reply to: Querying for Packages Recently Completed, Expired, Etc.
Tuesday, December 15, 2015 at 02:38amThe only workaround I would have for you is to use the sample code above and set START_DATE to something like the last 30 days (or more). This way, you would be able to determine the status of each package in the last 30 days.
Reply to: Creating Groups
Friday, December 11, 2015 at 10:45amThe code below will do trick. Let me know if you run into any issues.
public static void Main(string[] args)
{
EslClient eslClient = new EslClient(apiKey, apiUrl);
Group emptyGroup = GroupBuilder.NewGroup(Guid.NewGuid().ToString())
.WithEmail("[email protected]")
.WithoutIndividualMemberEmailing()
.Build();
Group createdEmptyGroup = eslClient.GroupService.CreateGroup(emptyGroup);
eslClient.GroupService.InviteMember(createdEmptyGroup.Id,
GroupMemberBuilder.NewGroupMember("[email protected]")
.AsMemberType(GroupMemberType.MANAGER)
.Build());
}
When creating a new package in your Sandbox account, click on the "Advanced options" tab. Then, click on the "Do not auto-complete the Package" checkbox. This will give you a chance to review the package before marking it COMPLETE.
Reply to: Set the package expiry date programmaticaly
Monday, December 14, 2015 at 02:46amIt is definitely possible to set the expiry date with the Java SDK. The sample code below sets the expiry date to two weeks from today:
public class expiryDate {
public static final String API_KEY = "your_api_key";
public static final String API_URL = "https://sandbox.esignlive.com/api";
// USE https://apps.e-signlive.com/api FOR PRODUCTION
public static void main( String[] args ) {
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, +14);
Date expiryDate = cal.getTime();
//connect to e-SignLive
EslClient eslClient = new EslClient( API_KEY, API_URL );
//create a packageId using your packageId string
PackageId packageId = new PackageId("472b7114-9478-493d-bd3c-2367a0cdab4e");
//get your package
DocumentPackage myPackage = eslClient.getPackage(packageId);
myPackage.setExpiryDate(expiryDate);
eslClient.getPackageService().updatePackage(packageId, myPackage);
}
}
Approved Answer
Reply to: Set the package expiry date programmaticaly
Monday, December 14, 2015 at 03:22amI apologize if it wasn't clear in the API documentation. When creating a new package, you have the option of setting the expiry date. An example is shown in "Custom Package Data" in the "Document Package Configuration" section of the API documentation.
DocumentPackage superDuperPackage1 = newPackageNamed( "Policy " + new SimpleDateFormat( "HH:mm:ss" ).format( new Date() ) )
.describedAs( "This is a package created using the e-SignLive SDK" )
.expiresAt( new Date() )
.withEmailMessage( "This message should be delivered to all signers" )
.withSigner( newSignerWithEmail( "[email protected]" )
.withCustomId( "Client1" )
.withFirstName( "John" )
.withLastName( "Smith" )
.withTitle( "Managing Director" )
.withCompany( "Acme Inc." ) )
.withDocument( newDocumentWithName( "First Document" )
.fromStream( new java.io.FileInputStream(DOCUMENT_PATH), DocumentType.PDF )
.withSignature( signatureFor( "[email protected]" )
.onPage( 0 )
.withField( FieldBuilder.checkBox()
.onPage( 0 )
.atPosition( 400, 200 )
.withValue( "x" ) )
.atPosition( 100, 100 ) ) )
.withAttributes(newDocumentPackageAttributes()
.withAttribute( "First Name", "Bill" )
.withAttribute("Last Name", "Johnson")
.withAttribute("Signing Order", "1")
.build())
.build();
PackageId packageId = eslClient.createPackage( superDuperPackage );
eslClient.sendPackage( packageId );
In the sample code I provided earlier, I set the expiry date on an already created package. It is indeed not covered in the documentation.Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
Hi,
I want to extract ip address, geolocation and signature date of a signer. Can you help me please?
Thank you.
|
4 | 5 years 10 months ago | 91 | |
Hi,
I am trying to find my API Key that is mentioned in the following step by step guide.
https://developer.esignlive.com/guides/quick-start/creating-and-sending-a-package-java/
The first few lines
|
5 | 5 years 2 months ago | 504 | |
Hi Team,
I have Created a package using "REST API" which has two signers , And when any one of the signer is "Decline" the document the other signer status is also getting "Decline"
Basically i s
|
5 | 5 years 10 months ago | 36 | |
Hi Team,
I am Creating some application to Perform Operation on the Packages and Since Last two Hours The API is not working Below URL i have tried
https://sandbox.esignlive.com
https://sandbox.e-si
|
2 | 5 years 5 months ago | 99 | |
Hi,
We are unable to remove all the documents from the package when document visibility settings are enabled.
|
3 | 5 years 10 months ago | 42 |
Subscriptions Release Notes
This user is not subscribed to any release notes.