Skip to content

Instantly share code, notes, and snippets.

@DSDevCenter
Created February 20, 2018 03:03
Show Gist options
  • Save DSDevCenter/4950e456e046fc5c9cc27e7addbc1bf1 to your computer and use it in GitHub Desktop.
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
// 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