Skip to content

Instantly share code, notes, and snippets.

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