@@ -44,12 +44,12 @@ def worker(args):
4444 2. Create an envelope definition object
4545 """
4646 # Construct your API headers
47- # Step 2 start
47+ #ds-snippet- start:eSign20Step2
4848 api_client = create_api_client (base_path = args ["base_path" ], access_token = args ["access_token" ])
49- # Step 2 end
49+ #ds-snippet- end:eSign20Step2
5050
5151 # Construct your envelope
52- # Step 4 start
52+ #ds-snippet- start:eSign20Step4
5353 envelope_definition = EnvelopeDefinition (
5454 email_subject = "Please sign this document set"
5555 )
@@ -100,13 +100,13 @@ def worker(args):
100100
101101 # Tabs are set per recipient
102102 envelope_definition .recipients = Recipients (signers = [signer1 ])
103- # Step 4 end
103+ #ds-snippet- end:eSign20Step4
104104
105105 # Call the eSignature REST API
106- # Step 5 start
106+ #ds-snippet- start:eSign20Step4
107107 envelopes_api = EnvelopesApi (api_client )
108108 results = envelopes_api .create_envelope (account_id = args ["account_id" ], envelope_definition = envelope_definition )
109- # Step 5 end
109+ #ds-snippet- end:eSign20Step5
110110
111111 return results
112112
@@ -115,7 +115,7 @@ def get_workflow(args):
115115 """Retrieve the workflow id"""
116116 try :
117117 api_client = create_api_client (base_path = args ["base_path" ], access_token = args ["access_token" ])
118- # Step 3 start
118+ #ds-snippet- start:eSign20Step3
119119 workflow_details = AccountsApi (api_client )
120120 workflow_response = workflow_details .get_account_identity_verification (account_id = args ["account_id" ])
121121
@@ -125,7 +125,7 @@ def get_workflow(args):
125125 for workflow in workflow_response .identity_verification :
126126 if workflow .default_name == "Phone Authentication" :
127127 session ['workflow_id' ] = workflow .workflow_id
128- # Step 3 end
128+ #ds-snippet- end:eSign20Step3
129129 return session ['workflow_id' ]
130130
131131 else :
0 commit comments