Skip to content

Commit 5518dcf

Browse files
authored
Merge pull request #83 from docusign/DEVDOCS-8544
Devdocs 8544
2 parents 4f187ef + da2d704 commit 5518dcf

3 files changed

Lines changed: 27 additions & 8 deletions

File tree

app/eSignature/examples/eg039_in_person_signer.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def get_args():
3333
return args
3434

3535
@classmethod
36+
# Step 3 start
3637
def worker(cls, args):
3738
"""
3839
1. Create the envelope request object
@@ -52,26 +53,33 @@ def worker(cls, args):
5253
results = envelope_api.create_envelope(account_id=args["account_id"], envelope_definition=envelope_definition)
5354

5455
envelope_id = results.envelope_id
56+
# Step 3 end
5557

5658
# 3. Create the Recipient View request object
59+
# Step 4 start
5760
recipient_view_request = RecipientViewRequest(
5861
authentication_method=authentication_method,
5962
recipient_id="1",
6063
return_url=envelope_args["ds_return_url"],
6164
user_name=envelope_args["host_name"],
6265
email=envelope_args["host_email"]
6366
)
67+
# Step 4 end
68+
69+
# Step 5 start
6470
# 4. Obtain the recipient_view_url for the embedded signing session
6571
# Exceptions will be caught by the calling function
6672
results = envelope_api.create_recipient_view(
6773
account_id=args["account_id"],
6874
envelope_id=envelope_id,
6975
recipient_view_request=recipient_view_request
7076
)
77+
# Step 5 end
7178

7279
return {"envelope_id": envelope_id, "redirect_url": results.url}
7380

7481
@classmethod
82+
# Step 2 start
7583
def make_envelope(cls, args):
7684
"""
7785
Creates envelope
@@ -130,3 +138,6 @@ def make_envelope(cls, args):
130138
)
131139

132140
return envelope_definition
141+
# Step 2 end
142+
143+
# End

app/eSignature/examples/eg040_document_visibility.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def get_args():
4848
}
4949
return args
5050

51-
# Step 3 start
5251
@classmethod
5352
def worker(cls, args, doc_docx_path, doc_pdf_path):
5453
"""
@@ -58,21 +57,24 @@ def worker(cls, args, doc_docx_path, doc_pdf_path):
5857
envelope_args = args["envelope_args"]
5958
# 1. Create the envelope request object
6059
envelope_definition = cls.make_envelope(envelope_args, doc_docx_path, doc_pdf_path)
61-
60+
6261
# 2. call Envelopes::create API method
6362
# Exceptions will be caught by the calling function
63+
# Step 2 start
6464
api_client = create_api_client(base_path=args["base_path"], access_token=args["access_token"])
65+
# Step 2 end
6566

67+
# Step 4 start
6668
envelope_api = EnvelopesApi(api_client)
6769
results = envelope_api.create_envelope(account_id=args["account_id"], envelope_definition=envelope_definition)
68-
70+
# Step 4 end
71+
6972
envelope_id = results.envelope_id
7073

7174
return {"envelope_id": envelope_id}
72-
# Step 3 end
73-
74-
# Step 2 start
75+
7576
@classmethod
77+
# Step 3 start
7678
def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
7779
"""
7880
Creates envelope
@@ -212,4 +214,7 @@ def create_document1(cls, args):
212214
<h3 style="margin-top:3em;">Agreed: <span style="color:white;">**signature_1**/</span></h3>
213215
</body>
214216
</html>
215-
"""
217+
"""
218+
# Step 3 end
219+
220+
# End

app/templates/eg007_envelope_get_doc.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ <h4>Download envelope documents</h4>
88
certificate</li>
99
<li><b>Zip Archive</b>: a ZIP archive that contains all of the PDF documents,
1010
the certificate, and any .WAV files used for voice authentication.</li>
11-
<li>The envelope's individual documents</li>
11+
<li>
12+
<b>PDF Portfolio</b>: Retrieves the envelope documents as a <a href="https://helpx.adobe.com/acrobat/using/overview-pdf-portfolios.html">PDF portfolio</a>
13+
</li>
14+
<li>The envelope's individual documents</li>
1215
<li>The envelope's Certificate of Completion</li>
1316
</ul>
1417

0 commit comments

Comments
 (0)