Created
February 20, 2018 03:07
-
-
Save DSDevCenter/d1517017adfcb8033a4ae5d34274bb5e to your computer and use it in GitHub Desktop.
DocuSign C# SDK Example - Create Recipient View (Embedded 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
RecipientViewRequest viewOptions = new RecipientViewRequest() | |
{ | |
ReturnUrl = "https://www.docusign.com/", | |
ClientUserId = "1001", // must match clientUserId of the embedded recipient | |
AuthenticationMethod = "email", | |
UserName = "{USER_NAME}", | |
Email = "{USER_EMAIL}" | |
}; | |
// instantiate an envelopesApi object | |
EnvelopesApi envelopesApi = new EnvelopesApi(); | |
// create the recipient view (aka signing URL) | |
ViewUrl recipientView = envelopesApi.CreateRecipientView(accountId, envelopeId, viewOptions); | |
// print the JSON response | |
Console.WriteLine("ViewUrl:\n{0}", JsonConvert.SerializeObject(recipientView)); | |
// Start the embedded signing session | |
System.Diagnostics.Process.Start(recipientView.Url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment