我创建了一个带有签名者的信封,并以这种方式设置PhoneAuthentication
签名人。IdCheckConfigurationName=";电话授权$";;RecipientPhoneAuthentication phoneAuthentication=新的RecipientPhone身份验证{RecipMayProviderNumber=";真";,SenderProviderNumbers=新列表((};phoneAuthentication。发件人提供的号码。添加(signerTo.SignerCountryCode+SignerTo.SsignerPhoneNumber(;签名人。PhoneAuthentication=电话身份验证;签名人。RequireIdLookup=签名人到。是否需要预订"true":"false";`
但是当我获取ListRecipients-Signers-IdCheckConfigurationName==";电话认证$";PhoneAuthentication始终为空
你能说明为什么它是空的吗?
是的,所以您正在使用旧的方式,需要更改为新的方式。你可以在开发者中心找到一篇关于这个主题的详细文章。看起来你正在使用C#,C#代码如下所示:
string workflowId = phoneAuthWorkflow.WorkflowId;
EnvelopeDefinition env = new EnvelopeDefinition()
{
EnvelopeIdStamping = "true",
EmailSubject = "Please Sign",
EmailBlurb = "Sample text for email body",
Status = "Sent"
};
byte[] buffer = System.IO.File.ReadAllBytes(docPdf);
// Add a document
Document doc1 = new Document()
{
DocumentId = "1",
FileExtension = "pdf",
Name = "Lorem",
DocumentBase64 = Convert.ToBase64String(buffer)
};
// Create your signature tab
env.Documents = new List<Document> { doc1 };
SignHere signHere1 = new SignHere
{
AnchorString = "/sn1/",
AnchorUnits = "pixels",
AnchorXOffset = "10",
AnchorYOffset = "20"
};
// Tabs are set per recipient/signer
Tabs signer1Tabs = new Tabs
{
SignHereTabs = new List<SignHere> { signHere1 }
};
string workflowId = workflowId;
RecipientIdentityVerification workflow = new RecipientIdentityVerification()
{
WorkflowId = workflowId,
InputOptions = new List<RecipientIdentityInputOption> {
new RecipientIdentityInputOption
{
Name = "phone_number_list",
ValueType = "PhoneNumberList",
PhoneNumberList = new List<RecipientIdentityPhoneNumber>
{
new RecipientIdentityPhoneNumber
{
Number = phoneNumber,
CountryCode = countryAreaCode,
}
}
}
}
};
Signer signer1 = new Signer()
{
Name = signerName,
Email = signerEmail,
RoutingOrder = "1",
Status = "Created",
DeliveryMethod = "Email",
RecipientId = "1", //represents your {RECIPIENT_ID},
Tabs = signer1Tabs,
IdentityVerification = workflow,
};
Recipients recipients = new Recipients();
recipients.Signers = new List<Signer> { signer1 };
env.Recipients = recipients;