5353# After it is signed, a copy is sent to the cc person.
5454
5555# temp files:
56- request_data=$( mktemp /tmp/request-eg-002 .XXXXXX)
57- response=$( mktemp /tmp/response-eg-002 .XXXXXX)
58- doc1_base64=$( mktemp /tmp/eg-002 -doc1.XXXXXX)
59- doc2_base64=$( mktemp /tmp/eg-002 -doc2.XXXXXX)
60- doc3_base64=$( mktemp /tmp/eg-002 -doc3.XXXXXX)
56+ request_data=$( mktemp /tmp/request-eg-011 .XXXXXX)
57+ response=$( mktemp /tmp/response-eg-011 .XXXXXX)
58+ doc1_base64=$( mktemp /tmp/eg-011 -doc1.XXXXXX)
59+ doc2_base64=$( mktemp /tmp/eg-011 -doc2.XXXXXX)
60+ doc3_base64=$( mktemp /tmp/eg-011 -doc3.XXXXXX)
6161
6262# Fetch docs and encode
6363cat ../demo_documents/doc_1.html | base64 > $doc1_base64
@@ -80,53 +80,44 @@ printf \
8080 cat $doc1_base64 >> $request_data
8181 printf ' ",
8282 "name": "Order acknowledgement",
83- "fileExtension": "html",
84- "documentId": "1"
83+ "fileExtension": "html", "documentId": "1"
8584 },
8685 {
8786 "documentBase64": "' >> $request_data
8887 cat $doc2_base64 >> $request_data
8988 printf ' ",
9089 "name": "Battle Plan",
91- "fileExtension": "docx",
92- "documentId": "2"
90+ "fileExtension": "docx", "documentId": "2"
9391 },
9492 {
9593 "documentBase64": "' >> $request_data
9694 cat $doc3_base64 >> $request_data
9795 printf ' ",
9896 "name": "Lorem Ipsum",
99- "fileExtension": "pdf",
100- "documentId": "3"
97+ "fileExtension": "pdf", "documentId": "3"
10198 }
10299 ],
103100 "recipients": {
104101 "carbonCopies": [
105102 {
106- "email": "{USER_EMAIL}",
107- "name": "Charles Copy",
108- "recipientId": "2",
109- "routingOrder": "2"
103+ "email": "{USER_EMAIL}", "name": "Charles Copy",
104+ "recipientId": "2", "routingOrder": "2"
110105 }
111106 ],
112107 "signers": [
113108 {
114- "email": "{USER_EMAIL}",
115- "name": "{USER_FULLNAME}",
116- "recipientId": "1",
117- "routingOrder": "1",
109+ "email": "{USER_EMAIL}", "name": "{USER_FULLNAME}",
110+ "recipientId": "1", "routingOrder": "1",
118111 "tabs": {
119112 "signHereTabs": [
120113 {
121114 "anchorString": "**signature_1**",
122- "anchorUnits": "pixels",
123- "anchorXOffset": "20",
115+ "anchorUnits": "pixels", "anchorXOffset": "20",
124116 "anchorYOffset": "10"
125117 },
126118 {
127119 "anchorString": "/sn1/",
128- "anchorUnits": "pixels",
129- "anchorXOffset": "20",
120+ "anchorUnits": "pixels", "anchorXOffset": "20",
130121 "anchorYOffset": "10"
131122 }
132123 ]
0 commit comments