您好, 如何使用Docusign RestAPI检索Document的XML formdata。
答案 0 :(得分:1)
是的,有一种方法可以获取文档表单字段的值,这在REST API Guide (v2)中有记录,并且还有一个DocuSign API Walkthrough已经演示了如何进行调用,尽管它没有包括您必须添加的“include_tabs”的可选查询参数。你想要的电话是 -
获取信封收件人状态
This returns the status for all recipients of a single envelope and identifies the current routing order. The current routing order is a number that matches up to the routingOrder for envelope recipients, which shows that the envelope has been sent to a recipient, but the recipient has not completed their actions.
<强>网址:
/accounts/{accountId}/envelopes/{envelopeId}/recipients
可选查询项:include_tabs = {true或false},include_extended = {true或false}
<强>格式强>:
XML, JSON
HTTP方法:
GET
参数:
唯一必需的参数是信封ID。如果可选查询include_tabs设置为true,则 返回与收件人关联的选项卡。如果可选查询include_extended设置为true, 返回扩展属性。
例如,如果您在信封上有一个名为DataField1
的带有textTab(数据字段)表单字段的已完成信封,则您可以使用附加到网址的可选网址参数?include_tabs=true
进行上述调用,在返回的其他数据中,你会有一些与textTab相似的内容及其价值:
"textTabs": [
{
"height": 11,
"validationPattern": "",
"validationMessage": "",
"shared": "false",
"requireInitialOnSharedChange": "false",
"name": "Text",
"value": "data goes here",
"width": 108,
"required": "true",
"locked": "false",
"concealValueOnDocument": "false",
"disableAutoSize": "false",
"tabLabel": "DataField1",
"bold": "false",
"italic": "false",
"underline": "false",
"documentId": "1",
"recipientId": "6c8377fc-ff4e-45ba-b7f7-c7b9b168471c",
"pageNumber": "1",
"xPosition": "202",
"yPosition": "71",
"tabId": "936c9ab6-f8b3-42e0-8870-52a024788319"
}
然后,您可以解析有关所需选项卡的任何信息,例如值,名称等。