@@ -28,11 +28,11 @@ def worker(cls, args):
2828 envelope_args = args ["envelope_args" ]
2929 envelope_definition = cls .make_envelope (envelope_args , DS_CONFIG ["doc_docx" ], DS_CONFIG ["doc_pdf" ])
3030
31- # Step 3 start
31+ #ds-snippet- start:eSign36Step3
3232 api_client = create_api_client (base_path = args ["base_path" ], access_token = args ["access_token" ])
3333 envelopes_api = EnvelopesApi (api_client )
3434 results = envelopes_api .create_envelope (account_id = args ["account_id" ], envelope_definition = envelope_definition )
35- # Step 3 end
35+ #ds-snippet- end:eSign36Step3
3636
3737 envelope_id = results .envelope_id
3838
@@ -46,7 +46,6 @@ def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
4646 The recipients' field tags are placed using <b>anchor</b> strings.
4747 """
4848
49- # Step 2 start
5049 # document 1 (PDF) has sign here anchor tag /sn1/
5150 #
5251 # The envelope has two recipients.
@@ -56,6 +55,7 @@ def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
5655 # After it is signed, there will be a delay before it is sent to the second signer.
5756
5857 # create the envelope definition
58+ #ds-snippet-start:eSign36Step2
5959 env = EnvelopeDefinition (
6060 email_subject = "Please sign this document"
6161 )
@@ -137,6 +137,6 @@ def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
137137 # Request that the envelope be sent by setting |status| to "sent".
138138 # To request that the envelope be created as a draft, set to "created"
139139 env .status = args ["status" ]
140- # Step 2 end
140+ #ds-snippet- end:eSign36Step2
141141
142142 return env
0 commit comments