eSignature 使用 API 创建信封并激活发送 UI 以进行手动标记

eSignature create envelope using API and activate the Send UI for manual tagging

我创建了一个基于 Web 的应用程序,允许进行身份验证和 JWT 模拟。我可以发送一组文件并指定 signers/recipients 都很好。我正在尝试弄清楚如何让 DocuSign UI 打开,以便在实际发送信封之前可以手动调整文档签名和首字母标签。

我已经通读了 SDK 文档和 QuickStart 示例,但由于我没有使用 Composer,所以我没有遵循有关如何调用它的基本结构 UI。是否有任何过度简化的代码示例仅通过 API 调用而不是使用框架直接显示此过程 PHP?

在此先感谢您... -格雷格

您正在尝试使用嵌入式发送,并且有一篇[您可以][1] 了解如何执行此操作。

这是获取 URL 返回的 PHP 代码,您可以使用它在您的应用程序中嵌入信封标签:

创建发件人视图

$view_request = new \DocuSign\eSign\Model\ReturnUrlRequest(['return_url' => $args['ds_return_url']]);
$config = new \DocuSign\eSign\Configuration();
$config->setHost($args['base_path']);
$config->addDefaultHeader('Authorization', 'Bearer ' . $args['ds_access_token']);
$api_client = new \DocuSign\eSign\client\ApiClient($config);
$envelope_api = new \DocuSign\eSign\Api\EnvelopesApi($api_client);
$results = $envelope_api->createSenderView($args['account_id'], $envelope_id, $view_request);
# Switch to the Recipients / Documents view if requested by the user in the form
$url = $results['url'];
if ($args['starting_view'] == "recipient") {
    $url = str_replace('send=1', 'send=0', $url);
}
return ['envelope_id' => $envelope_id, 'redirect_url' =>  $url];
}

注意:send=0 或 send=1 指定首先向您的用户显示收件人选择或标记器的页面。 [1]: https://developers.docusign.com/docs/esign-rest-api/how-to/embedded-sending/