获取带有数据的信封草稿
Get Envelope draft with data
如何通过 REST API 获取包含表单字段数据的信封草稿以在我的系统上显示预览,我在 DocuSign 沙盒上使用 PHP API,但当信封 ID 处于草稿状态时,PDF 请求-响应出错。
<?php
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://demo.docusign.net/restapi/v2.1/accounts/7808658/envelopes/{{envelopeId}}/documents/{{documentId}}');
$request->setRequestMethod('GET');
$request->setOptions(array());
$request->setHeaders(array(
'X-DocuSign-Authentication' => '{"Username":"x@xxx.com","Password":"doOTcFj08wl/xO6uR2ZLX6+rOaE=","IntegratorKey": "xxxx-xxxx-xx-a075-xxx"}',
'Content-Type' => 'application/json'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
我尝试向邮递员提出请求,但是当信封处于草稿状态时,响应是错误的。
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://demo.docusign.net/restapi/v2.1/accounts/7808658/envelopes/{{envelopeId}}/documents/{{documentId}}');
$request->setRequestMethod('GET');
$request->setOptions(array());
$request->setHeaders(array(
'X-DocuSign-Authentication' => '{"Username":"x@xxx.com","Password":"doOTcFj08wl/xO6uR2ZLX6+rOaE=","IntegratorKey": "xxxx-xxxx-xx-a075-xxx"}',
'Content-Type' => 'application/json'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
如果你echo/debug这个字符串'https://demo.docusign.net/restapi/v2.1/accounts/7808658/envelopes/{{envelopeId}}/documents/{{documentId}}'
您会注意到您没有传递 envelopeId 或 documentId,而是将它们作为文本传递,请传递 envelopeID 和 documentID,API 应该可以正常工作
如何通过 REST API 获取包含表单字段数据的信封草稿以在我的系统上显示预览,我在 DocuSign 沙盒上使用 PHP API,但当信封 ID 处于草稿状态时,PDF 请求-响应出错。
<?php
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://demo.docusign.net/restapi/v2.1/accounts/7808658/envelopes/{{envelopeId}}/documents/{{documentId}}');
$request->setRequestMethod('GET');
$request->setOptions(array());
$request->setHeaders(array(
'X-DocuSign-Authentication' => '{"Username":"x@xxx.com","Password":"doOTcFj08wl/xO6uR2ZLX6+rOaE=","IntegratorKey": "xxxx-xxxx-xx-a075-xxx"}',
'Content-Type' => 'application/json'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
我尝试向邮递员提出请求,但是当信封处于草稿状态时,响应是错误的。
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://demo.docusign.net/restapi/v2.1/accounts/7808658/envelopes/{{envelopeId}}/documents/{{documentId}}');
$request->setRequestMethod('GET');
$request->setOptions(array());
$request->setHeaders(array(
'X-DocuSign-Authentication' => '{"Username":"x@xxx.com","Password":"doOTcFj08wl/xO6uR2ZLX6+rOaE=","IntegratorKey": "xxxx-xxxx-xx-a075-xxx"}',
'Content-Type' => 'application/json'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
如果你echo/debug这个字符串'https://demo.docusign.net/restapi/v2.1/accounts/7808658/envelopes/{{envelopeId}}/documents/{{documentId}}'
您会注意到您没有传递 envelopeId 或 documentId,而是将它们作为文本传递,请传递 envelopeID 和 documentID,API 应该可以正常工作