我们正在开发一个使用asp.net核心的在线注册web应用程序。我们要做的是:-
如果这是DocuSign API所支持的,任何人都能提供建议吗?
发布于 2020-05-10 21:39:18
当然,实际上有不止一种方法可以做到这一点。但是它的要点是您想要远程签名,而不是嵌入式签名。在远程签名中,向每个收件人发送电子邮件以完成信封签名。下面是代码示例 for C# ASP.NET Core:
它的主旨是:
// Create document objects, one per document
Document doc1 = new Document();
string b64 = Convert.ToBase64String(document1(signerEmail, signerName, ccEmail, ccName));
doc1.DocumentBase64 = b64;
doc1.Name = "Order acknowledgement"; // can be different from actual file name
doc1.FileExtension = "html"; // Source data format. Signed docs are always pdf.
doc1.DocumentId = "1"; // a label used to reference the doc
Document doc2 = new Document {
DocumentBase64 = doc2DocxBytes,
Name = "Battle Plan", // can be different from actual file name
FileExtension = "docx",
DocumentId = "2"
};
Document doc3 = new Document
{
DocumentBase64 = doc3PdfBytes,
Name = "Lorem Ipsum", // can be different from actual file name
FileExtension = "pdf",
DocumentId = "3"
};
// The order in the docs array determines the order in the envelope
env.Documents = new List<Document> { doc1, doc2, doc3};
// create a signer recipient to sign the document, identified by name and email
// We're setting the parameters via the object creation
Signer signer1 = new Signer {
Email = signerEmail,
Name = signerName,
RecipientId = "1",
RoutingOrder = "1"
};
// routingOrder (lower means earlier) determines the order of deliveries
// to the recipients. Parallel routing order is supported by using the
// same integer as the order for two or more recipients.这有两个文档和通知RoutingOrder,如果您想要多个收件人并想确定他们签署的顺序,就使用它。
我建议您克隆全回购,然后看看它是如何工作的,因为它是一个ASP.NET核心应用程序,您可以立即从VS运行它。
希望这有帮助,乐意回答进一步的问题。
https://stackoverflow.com/questions/61676379
复制相似问题