-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathFaxDraftCreateExample.php
More file actions
36 lines (28 loc) · 1.01 KB
/
Copy pathFaxDraftCreateExample.php
File metadata and controls
36 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace Dropbox\SignSandbox;
require_once __DIR__ . '/../vendor/autoload.php';
use Dropbox;
$config = Dropbox\Sign\Configuration::getDefaultConfiguration();
$config->setUsername("YOUR_API_KEY");
$editor_options = (new Dropbox\Sign\Model\SubEditorPageOptions())
->setForceUploadPage(false)
->setForceEditorPage(true)
->setForceReviewPage(true);
$fax_draft_create_request = (new Dropbox\Sign\Model\FaxDraftCreateRequest())
->setClientId("b6b8e7deaf8f0b95c029dca049356d4a2cf9710a")
->setFileUrls([
"https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
])
->setRecipients([
"+14155552671",
])
->setEditorOptions($editor_options)
->setTestMode(true);
try {
$response = (new Dropbox\Sign\Api\FaxApi(config: $config))->faxDraftCreate(
fax_draft_create_request: $fax_draft_create_request,
);
print_r($response);
} catch (Dropbox\Sign\ApiException $e) {
echo "Exception when calling FaxApi#faxDraftCreate: {$e->getMessage()}";
}