Repository navigation
Expand file tree
/
Copy pathUnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.py
More file actions
70 lines (62 loc) · 1.89 KB
/
Copy pathUnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.py
File metadata and controls
70 lines (62 loc) · 1.89 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import json
from datetime import date, datetime
from pprint import pprint
from dropbox_sign import ApiClient, ApiException, Configuration, api, models
configuration = Configuration(
username="YOUR_API_KEY",
# access_token="YOUR_ACCESS_TOKEN",
)
with ApiClient(configuration) as api_client:
form_fields_per_document_1 = models.SubFormFieldsPerDocumentText(
document_index=0,
api_id="uniqueIdHere_1",
type="text",
required=True,
signer="1",
width=100,
height=16,
x=112,
y=328,
name="",
page=1,
placeholder="",
validation_type="numbers_only",
)
form_fields_per_document_2 = models.SubFormFieldsPerDocumentSignature(
document_index=0,
api_id="uniqueIdHere_2",
type="signature",
required=True,
signer="0",
width=120,
height=30,
x=530,
y=415,
name="",
page=1,
)
form_fields_per_document = [
form_fields_per_document_1,
form_fields_per_document_2,
]
unclaimed_draft_create_embedded_request = (
models.UnclaimedDraftCreateEmbeddedRequest(
client_id="b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
requester_email_address="jack@dropboxsign.com",
test_mode=False,
file_urls=[
"https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
],
form_fields_per_document=form_fields_per_document,
)
)
try:
response = api.UnclaimedDraftApi(api_client).unclaimed_draft_create_embedded(
unclaimed_draft_create_embedded_request=unclaimed_draft_create_embedded_request,
)
pprint(response)
except ApiException as e:
print(
"Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: %s\n"
% e
)