File tree Expand file tree Collapse file tree 3 files changed +70
-1
lines changed
Expand file tree Collapse file tree 3 files changed +70
-1
lines changed Original file line number Diff line number Diff line change 1111
1212# Check that we have an envelope id
1313if [ ! -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
1718fi
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments