【发布时间】:2018-10-12 09:05:43
【问题描述】:
我想知道如何从 docusign API 获取签名文档?我已经可以通过电子邮件提出签名请求(它工作正常!)。但我希望在文档完成后在 url 点击时显示它。
文档不是很清楚...
这是我的 php 代码的一部分:
try
{
//*** STEP 1 - Login API: get first Account ID and baseURL
//..............//
if(isset($loginInformation) && count($loginInformation) > 0)
{
$loginAccount = $loginInformation->getLoginAccounts()[0];
$host = $loginAccount->getBaseUrl();
$host = explode("/v2",$host);
$host = $host[0];
// UPDATE configuration object
$config->setHost($host);
// instantiate a NEW docusign api client (that has the correct baseUrl/host)
$apiClient = new DocuSign\eSign\ApiClient($config);
if(isset($loginInformation))
{
$accountId = $loginAccount->getAccountId();
if(!empty($accountId))
{
$envelopeApi = new DocuSign\eSign\Api\EnvelopesApi($apiClient);
$docsList = $envelopeApi->listDocuments($accountId, $envelopeId);
$documents = $docsList->getEnvelopeDocuments();
foreach($documents as $index => $document)
{
$url = $config->getHost().'/v2/accounts/'.$accountId.'/'.$document->getUri();
//------>Here i get the url but i cant read this file???
}
}
}
}
}
这个网址没有响应,我做错了什么?
【问题讨论】:
-
$url的内容? -
当我点击这个网址时,它会给出一个窗口...
-
我想 sietse85 询问的是
$url值,而不是页面内容。不过,您也可以告诉我们页面是否为空(DOM 检查器显示什么?) -
$url 内容物有所值,但我无法访问这些资源。以下是错误消息:
.PARTNER_AUTHENTICATION_FAILED 未找到或禁用指定的集成商密钥。未指定 Integrator 密钥。
标签: php symfony document docusignapi