Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't download document when calling function getDocument

Tags:

docusignapi

Error: Call to a member function read() on string in DocuSign\eSign\ObjectSerializer::deserialize() (line 285 of/vendor/docusign/esign-client/src/ObjectSerializer.php).

I'm calling that function

$temp_file = $envelope_api->getDocument($accountID, $document_id, $envelope_id);

This is causing the issue

$file = fopen($filename, 'w');
while ($chunk = $data->read(200)) {
    fwrite($file, $chunk);
}
fclose($file);
like image 318
U.N Avatar asked Jun 09 '26 22:06

U.N


1 Answers

If you think there's a bug in the PHP SDK (client library) please let us know. Version 5.2 was release recently, so it's possible there's some change in behavior compared to version 5.1.

like image 167
Inbar Gazit Avatar answered Jun 14 '26 04:06

Inbar Gazit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!