-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathSignatureRequestSendWithTemplateExample.py
More file actions
72 lines (60 loc) · 1.82 KB
/
SignatureRequestSendWithTemplateExample.py
File metadata and controls
72 lines (60 loc) · 1.82 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
71
72
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:
signing_options = models.SubSigningOptions(
default_type="draw",
draw=True,
phone=False,
type=True,
upload=True,
force_advanced_signature_details=False,
)
signers_1 = models.SubSignatureRequestTemplateSigner(
role="Client",
name="George",
email_address="george@example.com",
)
signers = [
signers_1,
]
ccs_1 = models.SubCC(
role="Accounting",
email_address="accounting@example.com",
)
ccs = [
ccs_1,
]
custom_fields_1 = models.SubCustomField(
name="Cost",
editor="Client",
required=True,
value="$20,000",
)
custom_fields = [
custom_fields_1,
]
signature_request_send_with_template_request = models.SignatureRequestSendWithTemplateRequest(
template_ids=[
"61a832ff0d8423f91d503e76bfbcc750f7417c78",
],
message="Glad we could come to an agreement.",
subject="Purchase Order",
test_mode=True,
signing_options=signing_options,
signers=signers,
ccs=ccs,
custom_fields=custom_fields,
)
try:
response = api.SignatureRequestApi(api_client).signature_request_send_with_template(
signature_request_send_with_template_request=signature_request_send_with_template_request,
)
pprint(response)
except ApiException as e:
print("Exception when calling SignatureRequestApi#signature_request_send_with_template: %s\n" % e)