@@ -44,8 +44,8 @@ def get_args():
4444 }
4545 return args
4646
47- # Step 3 start
4847 @classmethod
48+ #ds-snippet-start:eSign38Step3
4949 def worker (cls , args ):
5050 """
5151 1. Create the envelope request object
@@ -54,10 +54,10 @@ def worker(cls, args):
5454 4. Obtain the recipient_view_url for the embedded signing
5555 """
5656 envelope_args = args ["envelope_args" ]
57- # 1. Create the envelope request object
57+ # Create the envelope request object
5858 envelope_definition = cls .make_envelope (envelope_args )
5959
60- # 2. call Envelopes::create API method
60+ # Call Envelopes::create API method
6161 # Exceptions will be caught by the calling function
6262 api_client = create_api_client (base_path = args ["base_path" ], access_token = args ["access_token" ])
6363
@@ -66,7 +66,7 @@ def worker(cls, args):
6666
6767 envelope_id = results .envelope_id
6868
69- # 3. Create the Recipient View request object
69+ # Create the Recipient View request object
7070 recipient_view_request = RecipientViewRequest (
7171 authentication_method = authentication_method ,
7272 client_user_id = envelope_args ["signer_client_id" ],
@@ -75,7 +75,7 @@ def worker(cls, args):
7575 user_name = envelope_args ["signer_name" ],
7676 email = envelope_args ["signer_email" ]
7777 )
78- # 4. Obtain the recipient_view_url for the embedded signing
78+ # Obtain the recipient_view_url for the embedded signing
7979 # Exceptions will be caught by the calling function
8080 results = envelope_api .create_recipient_view (
8181 account_id = args ["account_id" ],
@@ -84,10 +84,10 @@ def worker(cls, args):
8484 )
8585
8686 return {"envelope_id" : envelope_id , "redirect_url" : results .url }
87- # Step 3 end
87+ #ds-snippet- end:eSign38Step3
8888
89- # Step 2 start
9089 @classmethod
90+ #ds-snippet-start:eSign38Step2
9191 def make_envelope (cls , args ):
9292 """
9393 Creates envelope
@@ -149,5 +149,4 @@ def get_html_content(cls, args):
149149 .replace ("/sn1/" , "<ds-signature data-ds-role=\" Signer\" />" ) \
150150 .replace ("/l1q/" , "<input data-ds-type=\" number\" />" ) \
151151 .replace ("/l2q/" , "<input data-ds-type=\" number\" />" )
152-
153- # Step 2 end
152+ #ds-snippet-end:eSign38Step2
0 commit comments