...
Curl Command to get OATH Access Token
Code Block |
---|
curl -v
https://eaapimgr-dmzlb.eagleaccess.com/auth/oauth/v2/token \
-H "Accept: application/json" \
-H "Accept-Language: en_US" \
-u "API_KEY:SHARED_SECRET" \
-d "grant_type=client_credentials"
|
Curl Command to Execute Published API
curl -X GET "{API_URL}" -H "accept: application/json" -H "authorization: Bearer {ACCESS_TOKEN_FROM_FIRST_STEP}"
Curl command to Retrieve OpenAPI spec from your Target App Server
Code Block |
---|
curl --request GET 'https://xxx-eaapimgr-dmzlb.eagleaccess.com/eagleml/v2/api-doc/warehouse' \
--header 'Authorization: Bearer [oauth token] \
--cert yourclientcrt.crt -key yourclient.key |