Skip to content

Commit 59f7b64

Browse files
Mei HsiehMei Hsieh
authored andcommitted
DEVDOCS-12004 Py Click 1 Step 2 cD mkrs
1 parent cd7c62a commit 59f7b64

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

app/click/examples/eg001_create_clickwrap.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ def worker(args):
2929
4. Create a clickwrap request model
3030
5. Create a clickwrap using SDK
3131
"""
32-
# Step 1. Create an API client with headers
32+
# Create an API client with headers
33+
#ds-snippet-start:Click1Step2
3334
api_client = create_click_api_client(
3435
access_token=args["access_token"]
3536
)
36-
37+
#ds-snippet-end
38+
3739
#ds-snippet-start:Click1Step3
38-
# Step 2. Create a display settings model
40+
# Create a display settings model
3941
display_settings = DisplaySettings(
4042
consent_button_text="I Agree",
4143
display_name="Terms of Service",
@@ -53,15 +55,15 @@ def worker(args):
5355
doc_docx_bytes = file.read()
5456
doc_b64 = base64.b64encode(doc_docx_bytes).decode("ascii")
5557

56-
# Step 3. Create a document model.
58+
# Create a document model.
5759
document = Document( # Create the DocuSign document object
5860
document_base64=doc_b64,
5961
document_name="Terms of Service", # Can be different from actual file name
6062
file_extension="pdf", # Many different document types are accepted
6163
order=0
6264
)
6365

64-
# Step 4. Create a clickwrap request model
66+
# Create a clickwrap request model
6567
clickwrap_request = ClickwrapRequest(
6668
display_settings=display_settings,
6769
documents=[document, ],
@@ -70,7 +72,7 @@ def worker(args):
7072
)
7173
#ds-snippet-end:Click1Step3
7274

73-
# Step 5. Create a clickwrap using SDK
75+
# Create a clickwrap using SDK
7476
#ds-snippet-start:Click1Step4
7577
accounts_api = AccountsApi(api_client)
7678
response = accounts_api.create_clickwrap(

0 commit comments

Comments
 (0)