2014-10-01 62 views
2

我正在处理一个窗体,其中包含用于添加值的各种字段(texttabs/listtabs/etc)。通过API获取表单数据(包括隐藏值)?

表单发送给两个收件人,其中一个可以访问已设置为“隐藏”(true)的字段的一半,以防止其他收件人查看个人信息。

我的问题是,是否有可能通过API检索表单数据(隐藏值)?一旦Docusign中的表单完成,我想重新将这些隐藏的值重新附加到我的API脚本中的最终产品中。我到处搜索,但无法找到答案。

感谢, 丹

回答

2

是的,这是可以通过的DocuSign REST API做。这不是非常直观,但您可以通过API调用来检索收件人输入的值。

看看获取Envelope Recipient状态 API调用,更重要的是,它是一个可选参数。通话详情如下:

网址: /accounts/{accountId}/envelopes/{envelopeId}/recipients

HTTP方法: GET

参数: The only required parameter is the envelope ID. If the optional query include_tabs is set to true, the tabs associated with the recipient are returned. If the optional query include_extended is set to true, the extended properties are returned.

- 实例(来自文件) -

GET https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes/{envelopeId}/recipients?include_tabs=true 

X-DocuSign-Authentication: <DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><IntegratorKey>{integrator_key}</IntegratorKey></DocuSignCredentials> 
Accept: application/json 
Content-Type: application/json 

有关通话的详细信息,请参阅REST API Guide page 192

+0

啊,明白了。我已经在一个函数中执行这个API调用,所以很容易附加'?include_tabs = true'参数。我希望有一种机制可以像正常情况那样检索表单中的隐藏值。 谢谢埃尔金。 – 2014-10-20 16:37:41