Obtain a copy of the current documents specified by the template_id
parameter. Returns a PDF or ZIP file.
If the files are currently being prepared, a status code of 409
will be returned instead. In this case please wait for the template_created
callback event.
successful operation
failed_operation
<?php
namespace Dropbox\SignSandbox;
require_once __DIR__ . '/../vendor/autoload.php';
use SplFileObject;
use Dropbox;
$config = Dropbox\Sign\Configuration::getDefaultConfiguration();
$config->setUsername("YOUR_API_KEY");
// $config->setAccessToken("YOUR_ACCESS_TOKEN");
try {
$response = (new Dropbox\Sign\Api\TemplateApi(config: $config))->templateFiles(
template_id: "f57db65d3f933b5316d398057a36176831451a35",
);
copy($response->getRealPath(), __DIR__ . '/file_response');
} catch (Dropbox\Sign\ApiException $e) {
echo "Exception when calling TemplateApi#templateFiles: {$e->getMessage()}";
}
{- "error": {
- "error_msg": "This value should not be blank",
- "error_path": "cc_email_addresses[0]",
- "error_name": "bad_request"
}
}