【发布时间】:2021-11-22 05:25:27
【问题描述】:
我正在使用这个包docusign/esign-client 将 Docusign 集成到 laravel 项目中。我正在尝试使用以下代码从发送的信封中下载文档:
$envelopeApi = new EnvelopesApi(new ApiClient($configuration));
$tempFile = $envelopeApi->getDocument($config['accountId'], 'combined', $config['envelopeId']);
file_put_contents('combined.pdf', file_get_contents($tempFile->getPathName()));
$tempFile = $envelopeApi->getDocument($config['accountId'], '1', $config['envelopeId']);
file_put_contents('sample.pdf', file_get_contents($tempFile->getPathName()));
在这两种情况下,正在保存的文件都是零字节,这意味着空。
同样的问题也出现在示例代码中,可以查看here
任何帮助将不胜感激,
谢谢!
【问题讨论】:
标签: php laravel docusignapi