forked from hellosign/hellosign-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmbeddedEditUrl.php
More file actions
28 lines (20 loc) · 782 Bytes
/
EmbeddedEditUrl.php
File metadata and controls
28 lines (20 loc) · 782 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
<?php
require_once __DIR__ . "/vendor/autoload.php";
$config = HelloSignSDK\Configuration::getDefaultConfiguration();
// Configure HTTP basic authorization: api_key
$config->setUsername("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
// $config->setAccessToken("YOUR_ACCESS_TOKEN");
$api = new HelloSignSDK\Api\EmbeddedApi($config);
$data = new HelloSignSDK\Model\EmbeddedEditUrlRequest();
$data->setCcRoles([""])
->setMergeFields([]);
$templateId = "5de8179668f2033afac48da1868d0093bf133266";
try {
$result = $api->embeddedEditUrl($templateId, $data);
print_r($result);
} catch (HelloSignSDK\ApiException $e) {
$error = $e->getResponseObject();
echo "Exception when calling HelloSign API: "
. print_r($error->getError());
}