Skip to content

Commit e722226

Browse files
committed
DEVDOCS-10565 - adding codeDepot markers
1 parent 48e081a commit e722226

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/eSignature/examples/eg034_use_conditional_recipients.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,20 @@ def worker(cls, args):
5656
envelope_args = args["envelope_args"]
5757
# 1. Create the envelope request object
5858
envelope_definition = cls.make_envelope(envelope_args)
59+
#ds-snippet-start:eSign34Step2
5960
api_client = create_api_client(
6061
base_path=args["base_path"], access_token=args["access_token"]
6162
)
63+
#ds-snippet-end:eSign34Step2
6264
# 2. Call Envelopes::create API method
6365
# Exceptions will be caught by the calling function
66+
#ds-snippet-start:eSign34Step4
6467
envelopes_api = EnvelopesApi(api_client)
6568
results = envelopes_api.create_envelope(
6669
account_id=args["account_id"],
6770
envelope_definition=envelope_definition
6871
)
72+
#ds-snippet-end:eSign34Step4
6973

7074
return {"envelope_id": results.envelope_id}
7175

@@ -84,6 +88,7 @@ def make_envelope(cls, args):
8488
# If signer1 doesn't check the checkbox the envelope will be sent to the signer_2a
8589
# If signer1 check the checkbox the envelope will be sent to the signer_2b
8690

91+
#ds-snippet-start:eSign34Step3
8792
# Create the envelope definition
8893
env = EnvelopeDefinition(email_subject="ApproveIfChecked")
8994

@@ -247,3 +252,4 @@ def make_envelope(cls, args):
247252
# To request that the envelope be created as a draft, set to "created"
248253
env.status = args["status"]
249254
return env
255+
#ds-snippet-end:eSign34Step3

0 commit comments

Comments
 (0)