【问题标题】:Docusign - Getting Empty Document on downloadDocusign - 下载时获取空文档
【发布时间】: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


    【解决方案1】:

    我们已打开 JIRA 票证以进一步调查此问题。可以参考本帖通过https://support.docusign.com/联系沟通吗?

    【讨论】:

      猜你喜欢
      • 2022-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-24
      • 1970-01-01
      相关资源
      最近更新 更多