forked from hellosign/hellosign-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmbeddedEditUrlExample.php
More file actions
32 lines (24 loc) · 831 Bytes
/
EmbeddedEditUrlExample.php
File metadata and controls
32 lines (24 loc) · 831 Bytes
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
<?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");
$merge_fields = [
];
$embedded_edit_url_request = (new Dropbox\Sign\Model\EmbeddedEditUrlRequest())
->setCcRoles([
"",
])
->setMergeFields($merge_fields);
try {
$response = (new Dropbox\Sign\Api\EmbeddedApi(config: $config))->embeddedEditUrl(
template_id: "f57db65d3f933b5316d398057a36176831451a35",
embedded_edit_url_request: $embedded_edit_url_request,
);
print_r($response);
} catch (Dropbox\Sign\ApiException $e) {
echo "Exception when calling EmbeddedApi#embeddedEditUrl: {$e->getMessage()}";
}