Skip to content

Commit cd1e255

Browse files
author
nianiB9
authored
Merge pull request #106 from docusign/DEVDOCS-16397
DEVDOCS-16397 cURL Code Example for Maestro API
2 parents 998b3d4 + 8f27710 commit cd1e255

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/Maestro/eg001TriggerWorkflow.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ echo ""
4141
echo "Attempting to retrieve Workflow definition"
4242
echo ""
4343
#ds-snippet-start:Maestro1Step3
44+
#apx-snippet-start:GetWorkflowsList
4445
response=$(mktemp /tmp/response-wftmp.XXXXXX)
4546
Status=$(
4647
curl -w '%{http_code}' --request GET "${base_path}/accounts/${account_id}/workflows" \
4748
"${Headers[@]}" \
4849
--output ${response}
4950
)
51+
#apx-snippet-end:GetWorkflowsList
5052
# If the status code returned is greater than 201 (OK / Accepted), display an error message with the API response.
5153
if [[ "$Status" -gt "201" ]]; then
5254
echo ""

0 commit comments

Comments
 (0)