public string DBQuery(LuisResponse response)
        {
            var result = string.Empty;



            return(result);
        }
Beispiel #2
0
        public async Task <LuisResponse> GetIntent(string message)
        {
            HttpClient c = new HttpClient();
            //c.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", subscriptionKey);

            string headUrl = baseUri + string.Format("{0}?subscription-key={1}&q=", applicationId, subscriptionKey);
            string fullUrl = headUrl + WebUtility.UrlEncode(message);


            string responseBody = await c.GetStringAsync(fullUrl);

            LuisResponse response = JsonConvert.DeserializeObject <LuisResponse>(responseBody);

            return(response);
        }