我正在尝试使用DocuSign.eSign.dll(3.0.1)在ASP.Net Core中使用嵌入式签名方法来实现docusign。我已经可以对单个收件人执行此操作,但是现在我希望该文档由多个收件人签名。有没有人可以分享的工作示例?
先谢谢您!
答案 0 :(得分:0)
我确实为您提供了一个示例,但是使用node.JS而不是C#,这是同一件事,只需将其转换为您的lang。实际上,您可以在此处查看实时代码-https://loancosample.esigndemos.com并选择最右边的选项(帆船贷款)。 源代码在这里-https://github.com/docusign/sample-app-loanco-nodejs。您要查找的特定代码在这里-https://github.com/docusign/sample-app-loanco-nodejs/blob/master/routes/loan-sailboat.js,我可以在此处复制/粘贴相关代码:
//收件人 var signer = new docusign.Signer(); signer.routingOrder = 1; signer.email = body.inputEmail; signer.name = body.inputFirstName +''+ body.inputLastName; signer.recipientId ='1'; signer.excludedDocuments = ['3'];
if(body.inputSigningLocation == 'embedded'){
signer.clientUserId = '1001';
}
if(body.inputAccessCode && body.inputAccessCode.length){
signer.accessCode = body.inputAccessCode;
}
if(body.inputAuthentication == 'phone'){
app.helpers.addPhoneAuthToRecipient(signer, body.inputPhone);
}
var appraiserSigner = new docusign.Signer();
appraiserSigner.routingOrder = 2;
appraiserSigner.email = body.inputAppraiserEmail;
appraiserSigner.name = body.inputAppraiserFirstName + ' ' + body.inputAppraiserLastName;
appraiserSigner.recipientId = '2';