Skip to content

Commit 9148ea5

Browse files
committed
eg 5 and 6
1 parent 12818dd commit 9148ea5

File tree

3 files changed

+70
-1
lines changed

3 files changed

+70
-1
lines changed

Examples/eg004EnvelopeInfo.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ fi
1111

1212
# Check that we have an envelope id
1313
if [ ! -f ../ENVELOPE_ID ]; then
14-
echo "An envelope id is needed. Execute script eg002SigningViaEmail.sh"
14+
echo ""
15+
echo "PROBLEM: An envelope id is needed. Fix: execute script eg002SigningViaEmail.sh"
1516
echo ""
1617
exit -1
1718
fi
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Get the envelope recipients' details
2+
# This script uses the envelope_id stored in ../ENVELOPE_ID.
3+
# The ENVELOPE_ID file is created by example eg002SigningViaEmail.sh or
4+
# can be manually created.
5+
6+
7+
# Check that we're in a bash shell
8+
if [[ $SHELL != *"bash"* ]]; then
9+
echo "PROBLEM: Run these scripts from within the bash shell."
10+
fi
11+
12+
# Check that we have an envelope id
13+
if [ ! -f ../ENVELOPE_ID ]; then
14+
echo ""
15+
echo "PROBLEM: An envelope id is needed. Fix: execute script eg002SigningViaEmail.sh"
16+
echo ""
17+
exit -1
18+
fi
19+
envelope_id=`cat ../ENVELOPE_ID`
20+
21+
echo ""
22+
echo "Sending the EnvelopeRecipients::list request to DocuSign..."
23+
echo "Results:"
24+
echo ""
25+
26+
curl --header "Authorization: Bearer {ACCESS_TOKEN}" \
27+
--header "Content-Type: application/json" \
28+
--request GET https://demo.docusign.net/restapi/v2/accounts/{ACCOUNT_ID}/envelopes/${envelope_id}/recipients
29+
30+
echo ""
31+
echo ""
32+
echo "Done."
33+
echo ""
34+

Examples/eg006EnvelopeDocs.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# List the envelope's documents
2+
# This script uses the envelope_id stored in ../ENVELOPE_ID.
3+
# The ENVELOPE_ID file is created by example eg002SigningViaEmail.sh or
4+
# can be manually created.
5+
6+
7+
# Check that we're in a bash shell
8+
if [[ $SHELL != *"bash"* ]]; then
9+
echo "PROBLEM: Run these scripts from within the bash shell."
10+
fi
11+
12+
# Check that we have an envelope id
13+
if [ ! -f ../ENVELOPE_ID ]; then
14+
echo ""
15+
echo "PROBLEM: An envelope id is needed. Fix: execute script eg002SigningViaEmail.sh"
16+
echo ""
17+
exit -1
18+
fi
19+
envelope_id=`cat ../ENVELOPE_ID`
20+
21+
echo ""
22+
echo "Sending the EnvelopeDocuments::list request to DocuSign..."
23+
echo "Results:"
24+
echo ""
25+
26+
curl --header "Authorization: Bearer {ACCESS_TOKEN}" \
27+
--header "Content-Type: application/json" \
28+
--request GET https://demo.docusign.net/restapi/v2/accounts/{ACCOUNT_ID}/envelopes/${envelope_id}/documents
29+
30+
echo ""
31+
echo ""
32+
echo "Done."
33+
echo ""
34+

0 commit comments

Comments
 (0)