@@ -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