Created
February 20, 2018 03:03
-
-
Save DSDevCenter/4950e456e046fc5c9cc27e7addbc1bf1 to your computer and use it in GitHub Desktop.
DocuSign Java SDK Example - Create Recipient View (Signing URL) using eSignature REST API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// instantiate a new EnvelopesApi object | |
EnvelopesApi envelopesApi = new EnvelopesApi(); | |
// set the url where you want the recipient to go once they are done signing | |
RecipientViewRequest view = new RecipientViewRequest(); | |
view.setReturnUrl("https://www.docusign.com"); | |
view.setAuthenticationMethod("email"); | |
// recipient information must match embedded recipient info we provided in step #2 | |
view.setEmail("[RECIPIENT_EMAIL]"); | |
view.setUserName("[RECIPIENT_NAME]"); | |
view.setRecipientId("1"); | |
view.setClientUserId("1001"); | |
// call the CreateRecipientView API | |
ViewUrl recipientView = envelopesApi.createRecipientView(accountId, envelopeId, view); | |
System.out.println("Signing URL = " + recipientView.getUrl()); | |
Desktop.getDesktop().browse(URI.create(recipientView.getUrl())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment