Returns the status of the SignatureRequest specified by the signature_request_id
parameter.
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->signatureRequestGet($signatureRequestId);
print_r($result);
} catch (Dropbox\Sign\ApiException $e) {
$error = $e->getResponseObject();
echo "Exception when calling Dropbox Sign API: "
. print_r($error->getError());
}
{- "signature_request": {
- "signature_request_id": "fa5c8a0b0f492d768749333ad6fcc214c111e967",
- "title": "Purchase Agreement",
- "original_title": "Purchase Agreement",
- "subject": "Purchase Agreement",
- "message": "Please sign and return.",
- "metadata": { },
- "created_at": 1570471067,
- "is_complete": true,
- "is_declined": false,
- "has_error": false,
- "custom_fields": [ ],
- "response_data": [
- {
- "api_id": "80c678_1",
- "name": "Needs Express Shipping",
- "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3",
- "value": true,
- "type": "checkbox"
}, - {
- "api_id": "80c678_2",
- "name": "Shipping Address",
- "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3",
- "value": "1212 Park Avenue",
- "type": "text"
}, - {
- "api_id": "80c678_3",
- "name": "DateSigned",
- "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3",
- "value": "09/01/2012",
- "type": "text"
}
], - "signing_url": null,
- "signing_redirect_url": null,
- "requester_email_address": "me@dropboxsign.com",
- "signatures": [
- {
- "signature_id": "78caf2a1d01cd39cea2bc1cbb340dac3",
- "signer_email_address": "john@example.com",
- "signer_name": "John Doe",
- "signer_role": null,
- "order": null,
- "status_code": "signed",
- "signed_at": 1346521550,
- "last_viewed_at": 1346521483,
- "last_reminded_at": null,
- "has_pin": false,
- "has_sms_auth": false
}
], - "cc_email_addresses": [ ]
}
}