private void SetupCredentials() { if (!string.IsNullOrEmpty(ApiKey)) { httpClient.AddApiKeyIfSet(ApiKey); } else { httpClient.AddAuthenticationHeaderIfSet(AuthenticationHeaderValue); } }