Skip to content

Commit b0aced0

Browse files
committed
adding codeDepot markers
1 parent 9024e03 commit b0aced0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/eSignature/examples/eg001_embedded_signing.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def worker(cls, args):
4141
3. Create the Recipient View request object
4242
4. Obtain the recipient_view_url for the embedded signing
4343
"""
44+
#ds-snippet-start:eSign1Step3
4445
envelope_args = args["envelope_args"]
4546
# 1. Create the envelope request object
4647
envelope_definition = cls.make_envelope(envelope_args)
@@ -53,8 +54,10 @@ def worker(cls, args):
5354
results = envelope_api.create_envelope(account_id=args["account_id"], envelope_definition=envelope_definition)
5455

5556
envelope_id = results.envelope_id
57+
#ds-snippet-end:eSign1Step3
5658

5759
# 3. Create the Recipient View request object
60+
#ds-snippet-start:eSign1Step4
5861
recipient_view_request = RecipientViewRequest(
5962
authentication_method=authentication_method,
6063
client_user_id=envelope_args["signer_client_id"],
@@ -63,17 +66,23 @@ def worker(cls, args):
6366
user_name=envelope_args["signer_name"],
6467
email=envelope_args["signer_email"]
6568
)
69+
#ds-snippet-end:eSign1Step4
70+
6671
# 4. Obtain the recipient_view_url for the embedded signing
6772
# Exceptions will be caught by the calling function
73+
74+
#ds-snippet-start:eSign1Step5
6875
results = envelope_api.create_recipient_view(
6976
account_id=args["account_id"],
7077
envelope_id=envelope_id,
7178
recipient_view_request=recipient_view_request
7279
)
7380

7481
return {"envelope_id": envelope_id, "redirect_url": results.url}
82+
#ds-snippet-end:eSign1Step5
7583

7684
@classmethod
85+
#ds-snippet-start:eSign1Step2
7786
def make_envelope(cls, args):
7887
"""
7988
Creates envelope
@@ -132,3 +141,4 @@ def make_envelope(cls, args):
132141
)
133142

134143
return envelope_definition
144+
#ds-snippet-end:eSign1Step2

0 commit comments

Comments
 (0)