Example #1
0
        private async Task <string> MakeRequestToLuis(string query)
        {
            var queryString = BuildQueryString(query);

            _httpClient.AddHeaders(OcpApimSubscriptionKey, _luisSettings.SubscriptionKey);

            var uri      = _luisSettings.LuisUrl + _luisSettings.LuisAppId + "?" + queryString;
            var response = await _httpClient.GetAsync(uri);

            var responseContent = await response.Content.ReadAsStringAsync();

            return(responseContent);
        }