Skip to content

Commit 1c8a4a0

Browse files
update codeDepot tags
1 parent ce64c9a commit 1c8a4a0

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

examples/Workspaces/eg001CreateWorkspace.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@ base_path="https://api-d.docusign.com/v1"
2121
request_data=$(mktemp /tmp/request-wseg-001.XXXXXX)
2222
response=$(mktemp /tmp/response-wseg-001.XXXXXX)
2323

24-
#ds-snippet-start:Workflows1Step2
24+
#ds-snippet-start:Workspaces1Step2
2525
declare -a Headers=('--header' "Authorization: Bearer ${ACCESS_TOKEN}" \
2626
'--header' "Accept: application/json" \
2727
'--header' "Content-Type: application/json")
28-
#ds-snippet-end:Workflows1Step2
28+
#ds-snippet-end:Workspaces1Step2
2929

3030
# Create the workspace definition
31-
#ds-snippet-start:Workflows1Step3
31+
#ds-snippet-start:Workspaces1Step3
3232
printf \
3333
'{
3434
"name" : "Example workspace"
3535
}' >> $request_data
36-
#ds-snippet-end:Workflows1Step3
36+
#ds-snippet-end:Workspaces1Step3
3737

38-
#ds-snippet-start:Workflows1Step4
38+
#ds-snippet-start:Workspaces1Step4
3939
Status=$(curl -s -w "%{http_code}\n" -i \
4040
--request POST ${base_path}/accounts/${account_id}/workspaces \
4141
"${Headers[@]}" \
4242
--data-binary @${request_data} \
4343
--output ${response})
44-
#ds-snippet-end:Workflows1Step4
44+
#ds-snippet-end:Workspaces1Step4
4545

4646
if [[ "$Status" -gt "201" ]] ; then
4747
echo ""

examples/Workspaces/eg002AddDocumentToWorkspace.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ base_path="https://api-d.docusign.com/v1"
2828

2929
response=$(mktemp /tmp/response-wseg-002.XXXXXX)
3030

31-
#ds-snippet-start:Workflows2Step2
31+
#ds-snippet-start:Workspaces2Step2
3232
declare -a Headers=(
3333
--header "Authorization: Bearer ${ACCESS_TOKEN}"
3434
--header "Accept: application/json"
3535
)
36-
#ds-snippet-end:Workflows2Step2
36+
#ds-snippet-end:Workspaces2Step2
3737

3838

3939
# Upload the file path to be added to the workspace
40-
#ds-snippet-start:Workflows2Step3
40+
#ds-snippet-start:Workspaces2Step3
4141
echo ""
4242
echo "Enter the path to the document you want to add to the workspace:"
4343
echo ""
@@ -54,16 +54,16 @@ echo "Enter the name for the document in the workspace:"
5454
echo ""
5555

5656
read doc_name
57-
#ds-snippet-end:Workflows2Step3
57+
#ds-snippet-end:Workspaces2Step3
5858

59-
#ds-snippet-start:Workflows2Step4
59+
#ds-snippet-start:Workspaces2Step4
6060
Status=$(curl -s -w "%{http_code}" -o "${response}" \
6161
--request POST "${base_path}/accounts/${account_id}/workspaces/${workspace_id}/documents" \
6262
"${Headers[@]}" \
6363
-F "file=@${file_path}" \
6464
-F "name=${doc_name}"
6565
)
66-
#ds-snippet-end:Workflows2Step4
66+
#ds-snippet-end:Workspaces2Step4
6767

6868

6969
if [[ "$Status" -gt "201" ]]; then

examples/Workspaces/eg003SendEnvelopeWithRecipientInfo.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@ base_path="https://api-d.docusign.com/v1"
3636
request_data=$(mktemp /tmp/request-wseg-001.XXXXXX)
3737
response=$(mktemp /tmp/response-wseg-001.XXXXXX)
3838

39-
#ds-snippet-start:Workflows3Step2
39+
#ds-snippet-start:Workspaces3Step2
4040
declare -a Headers=('--header' "Authorization: Bearer ${ACCESS_TOKEN}" \
4141
'--header' "Accept: application/json" \
4242
'--header' "Content-Type: application/json")
43-
#ds-snippet-end:Workflows3Step2
43+
#ds-snippet-end:Workspaces3Step2
4444

4545
# Create the workspace envelope definition
46-
#ds-snippet-start:Workflows3Step3
46+
#ds-snippet-start:Workspaces3Step3
4747
printf \
4848
'{
4949
"envelope_name": "Example Workspace Envelope",
5050
"document_ids": ["'"${document_id}"'"]
5151
}' >> $request_data
52-
#ds-snippet-end:Workflows3Step3
52+
#ds-snippet-end:Workspaces3Step3
5353

54-
#ds-snippet-start:Workflows3Step4
54+
#ds-snippet-start:Workspaces3Step4
5555
Status=$(curl -s -w "%{http_code}\n" -i \
5656
--request POST ${base_path}/accounts/${account_id}/workspaces/${workspace_id}/envelopes \
5757
"${Headers[@]}" \
5858
--data-binary @${request_data} \
5959
--output ${response})
60-
#ds-snippet-end:Workflows3Step4
60+
#ds-snippet-end:Workspaces3Step4
6161

6262
if [[ "$Status" -gt "201" ]] ; then
6363
echo ""
@@ -84,7 +84,7 @@ response=$(mktemp /tmp/response2-wseg-001.XXXXXX)
8484
#Set the eSignature REST API base path
8585
base_path="https://demo.docusign.net/restapi"
8686

87-
#ds-snippet-start:Workflows3Step5
87+
#ds-snippet-start:Workspaces3Step5
8888
printf \
8989
'{
9090
"emailSubject": "Please sign this document",
@@ -110,14 +110,14 @@ printf \
110110
},
111111
"status": "sent"
112112
}' >> $request_data
113-
#ds-snippet-end:Workflows3Step5
113+
#ds-snippet-end:Workspaces3Step5
114114

115-
#ds-snippet-start:Workflows3Step6
115+
#ds-snippet-start:Workspaces3Step6
116116
Status=$(curl -s -o "${response}" -w "%{http_code}" \
117117
--request PUT "${base_path}/v2.1/accounts/${account_id}/envelopes/${envelope_id}" \
118118
"${Headers[@]}" \
119119
--data-binary @"${request_data}")
120-
#ds-snippet-end:Workflows3Step6
120+
#ds-snippet-end:Workspaces3Step6
121121

122122
if [[ "$Status" -gt "201" ]] ; then
123123
echo ""

0 commit comments

Comments
 (0)