我试图在我的Rails应用程序上实现文档签名。 我有一个发送给许多用户的模板。Docusign in Rails
所以我做了一个标签Member
的自定义标签,我想用自定义文本填充它通过我的应用程序说'abc'。
这是我迄今为止试过的代码。成员部分仍然看起来空白。其他字段如姓名,签名和日期正常工作。
client = DocusignRest::Client.new
@envelope_response = client.create_envelope_from_template(
status: 'sent',
email: {
subject: "The test email subject envelope 7",
body: "Envelope body content here"
},
template_id: template_id,
signers: [
{
name: 'Name',
email: '[email protected]',
role_name: 'Expert',
tabs: {
text_tabs: [
{
tab_label: 'Member',
value: 'abc'
}
]
}
}
]
)
我不知道我出错了。请帮忙
客户端来自哪里?您使用哪些库来实现文档签名? – sebastian 2014-11-03 12:55:23
请发布这个创建和发送的相应JSON(您应该能够在发送前正确打印它)。我注意到的第一件事是,它应该是'tabLabel'而不是'tab_label'作为属性的名称,但也可能有其他问题。 – Ergin 2014-11-03 19:29:59
@Ergin sry为最迟回复..我怎么能把json响应.. – 2014-11-04 04:29:23