File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed
Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ echo ""
8787# pull out the envelopeId
8888ENVELOPE_ID=` cat $response | grep envelopeId | sed ' s/.*\"envelopeId\": \"//' | sed ' s/\",//' | tr -d ' \r' `
8989echo " 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.
Original file line number Diff line number Diff line change @@ -6,16 +6,12 @@ if [[ $SHELL != *"bash"* ]]; then
66 echo " PROBLEM: Run these scripts from within the bash shell."
77fi
88
9- # temp files:
10- request_data=$( mktemp /tmp/request.XXXXXX)
11-
129echo " "
1310echo " Sending the list envelope status request to DocuSign..."
1411echo " Results:"
1512echo " "
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'`
2521curl --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-
4227echo " "
4328echo " "
4429echo " Done."
You can’t perform that action at this time.
0 commit comments