Skip to content

Instantly share code, notes, and snippets.

@Ergin008
Last active January 7, 2016 23:17
Show Gist options
  • Save Ergin008/678430a6ab93ce91e194 to your computer and use it in GitHub Desktop.
Save Ergin008/678430a6ab93ce91e194 to your computer and use it in GitHub Desktop.
code snippet that shows how to request a signing URL for a recipient
RecipientViewRequest viewOptions = new RecipientViewRequest()
{
ReturnUrl = "https://www.docusign.com/devcenter",
ClientUserId = "1234", // must match clientUserId set in step #2!
AuthenticationMethod = "email",
UserName = "[SIGNER_NAME]",
Email = "[SIGNER_EMAIL]"
};
// create the recipient view (aka signing URL)
ViewUrl recipientView = envelopesApi.CreateRecipientView(accountId, "[ENVELOPE_ID]", 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