Skip to content

Commit f82bcc9

Browse files
committed
finish listEnvelopes
1 parent 66e413b commit f82bcc9

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

Examples/eg001EmbeddedSigning.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ echo ""
8787
# pull out the envelopeId
8888
ENVELOPE_ID=`cat $response | grep envelopeId | sed 's/.*\"envelopeId\": \"//' | sed 's/\",//' | tr -d '\r'`
8989
echo "EnvelopeId: ${ENVELOPE_ID}"
90-
90+
# Save the envelope id for use by other scripts
91+
echo ${ENVELOPE_ID} > ../ENVELOPE_ID
9192

9293
# Step 2. Create a recipient view (a signing ceremony view)
9394
# that the signer will directly open in their browser to sign.

Examples/eg003ListEnvelopes.sh

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ if [[ $SHELL != *"bash"* ]]; then
66
echo "PROBLEM: Run these scripts from within the bash shell."
77
fi
88

9-
# temp files:
10-
request_data=$(mktemp /tmp/request.XXXXXX)
11-
129
echo ""
1310
echo "Sending the list envelope status request to DocuSign..."
1411
echo "Results:"
1512
echo ""
1613

17-
# Calculate the from_date query parameter and use the
18-
# ISO 8601 format.
14+
# Calculate the from_date query parameter and use the ISO 8601 format.
1915
# Example:
2016
# from_date=2018-09-30T07:43:12+03:00
2117
# For a Mac, 10 days in the past:
@@ -25,20 +21,9 @@ from_date=`date -v -10d '+%Y-%m-%dT%H:%M:%S%z'`
2521
curl --header "Authorization: Bearer {ACCESS_TOKEN}" \
2622
--header "Content-Type: application/json" \
2723
--get \
28-
--data-urlencode 'from_date=${from_date}' \
24+
--data-urlencode "from_date=${from_date}" \
2925
--request GET https://demo.docusign.net/restapi/v2/accounts/{ACCOUNT_ID}/envelopes
3026

31-
32-
# $ curl -X PUT -G 'http://example.com/resource/1' --data-urlencode 'param1=value 1' --data-urlencode param2=value2
33-
34-
35-
36-
# cleanup
37-
rm "$request_data"
38-
rm "$doc1_base64"
39-
rm "$doc2_base64"
40-
rm "$doc3_base64"
41-
4227
echo ""
4328
echo ""
4429
echo "Done."

0 commit comments

Comments
 (0)