Last active
March 21, 2016 23:25
-
-
Save Ergin008/8097ab3664e0b6dcb7a9 to your computer and use it in GitHub Desktop.
code snippet that shows how to request a recipient view (signing URL) using DocuSign PHP client
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
<?php | |
// instantiate a RecipientViewRequest object | |
$recipient_view_request = new \DocuSign\eSign\Model\RecipientViewRequest(); | |
// set where the recipient is re-directed once they are done signing | |
$recipient_view_request->setReturnUrl("https://www.docusign.com/develcenter"); | |
// configure the embedded signer | |
$recipient_view_request->setUserName($recipientName); | |
$recipient_view_request->setEmail($recipientEmail); | |
// must reference the same clientUserId that was set for the recipient when they | |
// were added to the envelope in step 2 | |
$recipient_view_request->setClientUserId("1234"); | |
// used to indicate on the certificate of completion how the user authenticated | |
$recipient_view_request->setAuthenticationMethod("email"); | |
// generate the recipient view! (aka embedded signing URL) | |
$signingView = $envelopeApi->createRecipientView($accountId, $envelop_summary->getEnvelopeId(), $recipient_view_request); | |
echo "Signing URL = " . $signingView->getUrl() . "\n"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment