Set Authorization Header of HttpClient
I solved this by the following line of code.
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("key", "=" + apiKey);
I solved this by the following line of code.
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("key", "=" + apiKey);