Client Key / Secret
The Client Key / Secret is passed as a JSON object
ClientKey string
ClientSecret string
eg: {"ClientKey":"[key value]","ClientSecret":"[secret value]"}
When using the Client Key/Secret on each request, the value is passed in the request header with the key "Eagle-Api-Key" so the custom headers for an API request would appear as:
Header
|
Value
|
api-version
|
1.0
|
Eagle-Api-Key
|
{"ClientKey":"[key value]","ClientSecret":"[secret value]"}
|
c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://acme-connect.contracteagle.com/api/api-info");
request.Headers.Add("api-version", "1.0");
request.Headers.Add("Eagle-Api-Key", "{\"ClientKey\":\"mykey\",\"ClientSecret\":\"mysecret\"}");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();