Obtain a copy of the current documents specified by the signature_request_id
parameter. Returns a JSON object with a data_uri
representing the base64 encoded file (PDFs only).
If the files are currently being prepared, a status code of 409
will be returned instead.
successful operation
failed_operation
<?php
require_once __DIR__ . "/vendor/autoload.php";
$config = Dropbox\Sign\Configuration::getDefaultConfiguration();
// Configure HTTP basic authorization: api_key
$config->setUsername("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
// $config->setAccessToken("YOUR_ACCESS_TOKEN");
$signatureRequestApi = new Dropbox\Sign\Api\SignatureRequestApi($config);
$signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
try {
$result = $signatureRequestApi->signatureRequestFilesAsDataUri($signatureRequestId);
print_r($result);
} catch (Dropbox\Sign\ApiException $e) {
$error = $e->getResponseObject();
echo "Exception when calling Dropbox Sign API: "
. print_r($error->getError());
}