Last active
January 6, 2016 22:00
-
-
Save Ergin008/3e2ce24a277b9e709d1a to your computer and use it in GitHub Desktop.
code snippet that shows how to request a recipient signing URL
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
// use the |accountId| we retrieved through the Login API | |
String accountId = loginAccounts.get(0).getAccountId(); | |
// 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 returnUrl = new RecipientViewRequest(); | |
returnUrl.setReturnUrl("https://www.docusign.com/devcenter"); | |
returnUrl.setAuthenticationMethod("email"); | |
// recipient information must match embedded recipient info we provided in step #2 | |
returnUrl.setEmail("[SIGNER_EMAIL]"); | |
returnUrl.setUserName("[SIGNER_NAME]"); | |
returnUrl.setRecipientId("1"); | |
returnUrl.setClientUserId("1001"); | |
// call the CreateRecipientView API then navigate to the URL to start the signing session | |
ViewUrl recipientView = envelopesApi.createRecipientView(accountId, envelopeId.toString(), returnUrl); | |
System.out.println("ViewUrl: " + recipientView); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment