@@ -49,7 +49,7 @@ def worker(args):
4949 # Step 2 end
5050
5151 # Construct your envelope
52- # Step 3 start
52+ # Step 4 start
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 3 end
104-
103+ # Step 4 end
104+
105105 # Call the eSignature REST API
106- # Step 4 start
106+ # Step 5 start
107107 envelopes_api = EnvelopesApi (api_client )
108108 results = envelopes_api .create_envelope (account_id = args ["account_id" ], envelope_definition = envelope_definition )
109- # Step 4 end
109+ # Step 5 end
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-
118+ # Step 3 start
119119 workflow_details = AccountsApi (api_client )
120120 workflow_response = workflow_details .get_account_identity_verification (account_id = args ["account_id" ])
121121
@@ -125,12 +125,12 @@ 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-
128+ # Step 3 end
129129 return session ['workflow_id' ]
130130
131131 else :
132132 return None
133133
134134 except ApiException as err :
135135 return process_error (err )
136-
136+
0 commit comments