Skip to content

Commit 998b3d4

Browse files
author
nianiB9
authored
Merge pull request #105 from docusign/DEVDOCS-16396
DEVDOCS-16396 cURL Code Example for Navigator API
2 parents 4826e3f + b6727dc commit 998b3d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/Navigator/eg001ListAgreements.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ACCOUNT_ID=$(cat config/API_ACCOUNT_ID)
1616
base_path="https://api-d.docusign.com/v1"
1717

1818
#ds-snippet-start:Navigator1Step2
19+
#apx-snippet-start:GetAgreementsList
1920
declare -a Headers=('--header' "Authorization: Bearer ${ACCESS_TOKEN}" \
2021
'--header' "Accept: application/json" \
2122
'--header' "Content-Type: application/json")
@@ -27,6 +28,7 @@ response=$(mktemp /tmp/response-cw.XXXXXX)
2728
Status=$(curl -w '%{http_code}' -i --ssl-no-revoke --request GET ${base_path}/accounts/${ACCOUNT_ID}/agreements \
2829
"${Headers[@]}" \
2930
--output ${response})
31+
#apx-snippet-end:GetAgreementsList
3032
#ds-snippet-end:Navigator1Step3
3133

3234
if [[ "$Status" -gt "399" ]] ; then

0 commit comments

Comments
 (0)