Skip to content

Commit d704576

Browse files
author
nianiB9
committed
apx code snippets
1 parent 8e63dd1 commit d704576

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/Maestro/eg003ResumeWorkflow.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ ACCOUNT_ID=$(cat config/API_ACCOUNT_ID)
2323
base_path="https://api-d.docusign.com/v1"
2424

2525
# Construct your API headers
26+
#apx-snippet-start:ResumeWorkflow
2627
#ds-snippet-start:Maestro3Step2
2728
declare -a Headers=('--header' "Authorization: Bearer ${ACCESS_TOKEN}" \
2829
'--header' "Accept: application/json" \
2930
'--header' "Content-Type: application/json")
3031
#ds-snippet-end:Maestro3Step2
32+
#apx-snippet-end:ResumeWorkflow
3133

3234
echo ""
3335
echo "Attempting to resume the Workflow..."
3436
echo ""
3537

3638
# Make the API call to resume
39+
#apx-snippet-start:ResumeWorkflow
3740
#ds-snippet-start:Maestro3Step3
3841
response=$(mktemp /tmp/response-wftmp.XXXXXX)
3942
Status=$(
@@ -57,6 +60,7 @@ echo "Response:"
5760
cat $response
5861
echo ""
5962
#ds-snippet-end:Maestro3Step3
63+
#apx-snippet-end:ResumeWorkflow
6064

6165
# Remove the temporary files
6266
rm "$response"

0 commit comments

Comments
 (0)